Relative Content

Tag Archive for javaspringspring-bootoauth-2.0keycloak

pass a redirect uri in the spring boot oauth2 login flow

I have a spring boot server application using OIDC (keycloak) to authenticate users.
In the webapplication I call the default spring boot oauth2 login page if the user is not authenticated:
https://server/oauth2/authorization/clientId

spring boot oauth2 authentication failed ROLE_ANONYMOUS

user login on /login, /login redireting user to oauth2 keycloak next(after successful login) keycloak redirecting user to /home but user is not authenticated. roles are not working too. /roleDebug return authority: [ROLE_ANONYMOUS], /loginDebug return User is not authenticated, /tokenDebug return NullPointerException