Spontaneous scopes - maduvena/jans-docs GitHub Wiki
The Jans AS supports spontaneous scopes. The scope string contains a dynamic value in it. The scope value can be expressed as a regular expression. Examples: The dynamic value is the value of a resource.
-
^transaction:.+*$for (transaction:123453432)^pid:.+*$for (pid:998453432) The dynamic value123453432or998453432is the value of a resource. -
sign:MmU5OTc1ODU0ODk3MmE4ZTg4MjJhZDQ3ZmExMDE3ZmY3MmYwNmYzZmY2YTAxNjg1MWY0NWMzOTg3MzJiYzUwYw==,RXhhbXBsZSBDb250cmFjdA==Where the first parameter has a base64url encoded has value, second parameter after, is a label of the document to be signed.