I have application with spring boot as back end and angular front end. I am using keycloak sprint boot adapter for security.
I have configured /sso/login as redirect uri. When I hit the app url it redirect to keycloak authentication page When I fill up user name and password and it redirected back to application.
I have exposed one more api /token to get the token on the angular front end.
This setup works fine most of the cases. But some time after login it redirect to /token instead of my application. This happens mostly when my session get time out. When I debug the network, I see after authentication successful /sso/login is redirect to /token . I am not sure how it gets the token url
Above call has 302 status with location of /token.
Let let me know /sso/login?state redirect to any url