Repository navigation
Clarification on the full scope allowed switch #20006
|
Hello, It’s not very clear in my mind what the “full scope allowed” switch in the client dedicated scopes settings does. When ON, and the user has the |
Replies: 3 comments 4 replies
|
The switch allows to create access tokens with only a subset of the user's roles. You probably want to set it to "off" and configure all roles which are actually needed by the client. |
|
@xianli123 perhaps we can improve the copy for this? |
|
Thanks for your answer @jbman. I’m not an OAuth2/OpenID Connect expert, but, although this default “Full scope allowed” setting seems appropriate for an ecosystem where a single frontend application can make API calls to multiple trusted backend services on behalf of the user, it seems pretty insecure in presence of untrusted applications (like explained in the documentation). Maybe it should be clarified why this is the default setting and it should be emphasized that it’s strongly advised to change this setting (or maybe I missed some point here)? |
The switch allows to create access tokens with only a subset of the user's roles. You probably want to set it to "off" and configure all roles which are actually needed by the client.
And yes, if the
manage-account-roleis in the token it can be used at the account API for user-self-service operations. So if your client doesn't do sth. with this you can achieve a token with less privileges if you switch "Full scope allowed" to "off" and configure needed roles.