-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KeyCloak directs to 403 forbidden page after authenticated #2
Comments
Issue resolved, the problem with the user role and user |
@chamithchathuka |
@vivek82 in order to login to http://[host]:[port]/auth/admin/[your-realm]/console you may need some additional roles eg. view-realm |
@chamithchathuka, could you please elaborate the steps / instructions to add the view-realm role. |
User's roles should be added to the access token(generated by keycloak after successful authentication) as well. |
When I logged into the client app using the created user account with correct credentials KeyCloak allows me to log in, but application directs me into the access forbidden 403 page. stackoverflow.com/questions/44739006/spring-boot-keycloak-directed-to-403-forbidden I thnk there is an issue with Spring Boot project as KeyCloak
I am new to Keycloak, I am using the official tutorial project on https://github.com/sebastienblanc/spring-boot-keycloak-tutorial
for integrating with Spring Boot application, I have setup the KeyCloak server successfully and the spring boot application also directing to the client application I have created on the Realm I have created on KeyCloak, after providing the correct credentials it directs to the forbidden page.
Application.properties file
I am not getting any error message from KeyCloak console or spring embedded tomcat console.
Check the tomcat console here - no error enter image description here
Thank you.
The text was updated successfully, but these errors were encountered: