Repository navigation
|
Hi all, Despite reading through the docs 20 times I must be missing something about clients, scopes and roles. And the returned token has "scope":"openid profile email". Here is what I checked:
As a side note, if I add a bogus scope name in my request (e.g. "scope=openid foobar") then the request fails with a 400. What am I missing??? |
Replies: 4 comments 3 replies
|
|
If I go to admin-cli client -> client scopes -> evaluate:
The realm role is named "easypass-admin", composite = False, description is empty. It has no attributes, the user is listed in the role, and "Permissions enabled" is unchecked. Since my previous post I found that if I check "Full Scope Allowed" in Clients -> admin-cli -> client scopes -> admin-cli-dedicated -> scope then the roles are included. Here is the full configuration of the client: |
|
On that same "Evaluate" page, everything works as expected if "Full Scope Allowed" is selected. So the question is, is it normal / expected to have to select "Full Scope Allowed"? This is not what I understood from the documentation:
... although I don't see where I would "declare the specific roles you want in each client"? Franck |
|
So that "Assign role to scope" is the key to make this work, it can be done in one of two places (new UI): Client scopes -> roles -> Scope -> Assign Role I am pretty new to OIDC, but if I may I find the terminology pretty confusing. In both cases the description mentions "Create a role to get started" - I am looking to select or enable an existing role. Thanks for the help! |
So that "Assign role to scope" is the key to make this work, it can be done in one of two places (new UI):
Client scopes -> roles -> Scope -> Assign Role
Clients -> admin-cli -> Client scopes -> admin-cli-dedicated -> Scope
I am pretty new to OIDC, but if I may I find the terminology pretty confusing. In both cases the description mentions "Create a role to get started" - I am looking to select or enable an existing role.
And when I read "Assign a role" to something my understanding is that I will make that something (the client scope) "have" the role - not that I am setting it up to include a user role should it exist.
It is also unexpected to find a "Scope" tab under
[Clients] -> [Clien…