You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am implementing Keycloak authorization with spring boot.
I have already configured Keycloak authentication with LDAP and it is working fine.
I need to implement Keycloak authorization in a way like below
One client which connected with LDAP for authentication of employees and I have added a resource under authorization that can be accessed by 2 roles for eg role-A and role-B .
Also there are some APIs that can be accessed by other clients.
I created another client-> added a realm role for the client in the token -> generating a token based on client-credentials -> added resource under authorization and gave the API which the client needed to hit -> created a policy and added a realm role for this client -> created resource-based permission.
During the evaluation, it is working fine but through spring boot Keycloak authorization fails.
I am using Keycloak version 21 and spring boot version 2.7.10.
As adapters are deprecated so I cannot use keycloak-adapters any more.
I am new to keycloak due to which I am missing something in the configuration.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Hello guys,
I am implementing Keycloak authorization with spring boot.
I have already configured Keycloak authentication with LDAP and it is working fine.
I need to implement Keycloak authorization in a way like below
During the evaluation, it is working fine but through spring boot Keycloak authorization fails.
I am using Keycloak version 21 and spring boot version 2.7.10.
As adapters are deprecated so I cannot use keycloak-adapters any more.
I am new to keycloak due to which I am missing something in the configuration.
Thanks in advance.
All reactions