When someone signs in to the gateway, their identity provider sends details about them, including which groups they belong to. Before, the gateway only read groups from the single field named by oidc.groups_claim. A new optional setting, oidc.groups_jsonpath, takes a path expression that points to where the groups sit in that data. The gateway uses it in place of oidc.groups_claim when it is set.
The path supports a limited syntax:
- Dotted names, such as
a.b.c - Quoted names in brackets, such as
['name'] [*]for every item in a list[[email protected]=='value']to keep only items whose field has a given value
The gateway rejects a configuration that sets both oidc.groups_jsonpath and a non-default oidc.groups_claim, and asks you to remove one. For a plain field name, its error message points you to oidc.groups_claim.
Some identity providers put group membership deeper inside their data rather than in one top-level field. Those providers can now work with the gateway.