Repository navigation
Obtaining Permissions by pushing claims from Backend by using AccessToken from frontend (reactSPA) #35310
Unanswered
sachingaikwad123
asked this question in
Q&A
Replies: 2 comments 1 reply
|
Is it possible to pass 'contextual custom attributes' like below when checking permissions for an resource? Will this attribute be available in custom javascript policy via 'EvaluationContext -> Attributes'? I think, this will greatly enhance ABAC support. |
1 reply
|
Did you figure this out ? It is confusing to me how other things like the creation of authz resources and validation of access to these new resource work just fine with the token minted by the front end client and used by the backend confidential client, but this particular use case does not........ |
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.
Question: I would like "Resource Server" to provide some extra information regarding "resource instance" being "acted on" so that keycloak's policy can use this attribute information in its decision. For example, resource server may want to send "department_id" information to keycloak. Keycloak policy may want to check and make sure user's department_id is resource_instance's department_id, then "allow" or deny.
Question: How to do such dynamic resource (instances's) attribute ABAC using keycloak javascript policy?
I see that we can 'Contextual Information' in Keycloak "Evaluate"
Client --> Authorization -> Evaluate --> "Contextual Information" --> Contextual Attributes:
All reactions