Replies: 4 comments 7 replies
-
|
One way of dealing with dynamic scopes vs RAR could be to just do a basic translation of a dynamic scope request to a RAR request. That way we're mostly "just implementing RAR". For example a client that requests "?scope=groups:my-group" that could just be "expanded" into something like "?authorization_details=[{type:groups, identifier:my-group}]". Effectively we would get the "best of both" with a single implementation. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
I've come to the conclusion that we must not extend "scopes" without considering RAR, and at the same time we must not implement RAR as a separate thing. The two have very similar needs: a) client includes some additional details in authz request, b) some policies decide if it's permitted or not, c) the user optionally consents to some stuff, and d) some claims are added to tokens. |
Beta Was this translation helpful? Give feedback.
-
|
+1 for having dynamic scopes alongside RAR. Also +1 for having a unified core mechanism, with RAR and dynamic scopes being just different ways to use it. From my personal experience, dynamic scopes have a lot of applications outside FAPI. Moreover, people have been actively using it (in an ad hoc way) until it became restricted in KC 10. One of the examples is pseudo-multi-tenancy using just one realm, where tenant would be indicated as On a related note, it would also be nice to have an API (to be used from within providers) to query for requested scopes and to grant/deny (activate/deactivate) them on the fly. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Note: This discussion will be unified in: #8532, please continue any contributions in the new one.
After starting to work on the Dynamic Scopes Proposal that I created earlier today, I've started considering how this feature would interact with OAuth 2 Rich Authorization Requests spec (Currently an early stages draft).
I wanted to go through the pros and cons of going for one or the other and have a discussion on what we want to implement in Keycloak.
Pros of Dynamic Scopes:
Cons of Dynamic Scopes:
========
Pros of RAR:
Cons of RAR:
Let's discuss the direction we want to go with considering everything presented here.
Beta Was this translation helpful? Give feedback.
All reactions