Get scopes context from property mappings. #11551
Unanswered
marcportabellaclotet-mt
asked this question in
Q&A
Replies: 1 comment
-
I am able to get the scopes list in the application expression policy:
Now I need that this value is available in the property mapping (scope mapping) to apply some filter logic. I am able to pass via ugly workarounds, but it would be nice to have a easier way to pass these or other values. Something similar to flows, where infomation can be passed through stages, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Here’s a rephrased version:
I am configuring custom scopes in my OIDC application (HashiCorp Vault) to filter which groups are returned. These custom scopes replace the default profile scope. I want to apply an additional filter on the groups returned, based on these custom scopes.
For example, if I define a custom scope called
role:administrator
, I want the groups returned to only include the "administrator" group, provided the user is a member of it.In the scope mappings under property mappings, I haven't found a way to access
context.scopes
values, which are visible in the application's authorized context. Is there a way to retrieve these values within the scope mapping?Here’s my current scope mapping configuration.
My ultimate goal is to return only the groups that correspond to the role selected in Vault.
There may be alternative approaches to achieve this. I have successfully managed it with Keycloak and Auth0.
Any assistance would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions