Support JSON objects when evaluating claims in regex policy (#1566)

* Support JSON objects when evaluating claims in regex policy

    Closes #11514

* Update authorization_services/topics/policy-regex-policy.adoc

Co-authored-by: andymunro <48995441+andymunro@users.noreply.github.com>

Co-authored-by: andymunro <48995441+andymunro@users.noreply.github.com>
This commit is contained in:
Pedro Igor 2022-10-25 01:47:54 -03:00 committed by GitHub
parent afd0cd77f3
commit a1b9a6023c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,6 +5,8 @@ You can use this type of policy to define regex conditions for your permissions.
To create a new regex-based policy, select *Regex* from the policy type list.
This policy resolves attributes available from the current identity.
.Add Regex Policy
image:images/policy/create-regex.png[alt="Add Regex Policy"]
@ -20,7 +22,8 @@ A string containing details about this policy.
+
* *Target Claim*
+
Specifies the name of the target claim in the token.
Specifies the name of the target claim in the token. For JSON-based claims, you can use dot notation for nesting and square brackets to access array fields by index. For example, contact.address[0].country. If the target claim references a JSON
object, the first path (for example, `contact`) should map to the attribute name holding the JSON object.
+
* *Regex Pattern*
+