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.

  1. ^transaction:.+*$ for ( transaction:123453432 ) ^pid:.+*$ for ( pid:998453432 ) The dynamic value 123453432 or 998453432 is the value of a resource.

  2. 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.