Repository navigation
Replies: 3 comments 3 replies
|
@Basil1991 what do you mean you need both role and permission code ? Does that mean you need exact roles and permissions mapped for users in the token that you receive while logging in ? You can check out client-scope protocol mappers which allows you to add custom claims to your tokens. |
|
@Basil1991 There is one thing you need to note is that in KeyCloak the authentication is happen at the realm level. So that you will be getting the roles which are given for the user in the realm roles. But the permission you will be configured in the Client level by enabling the Authorization. As far as I know you can't get the permission details during the Authentication. |
Uh oh!
There was an error while loading. Please reload this page.
i want to use only authentication, i need add both role and permission code in access_token or userinfo. what should i do?
All reactions