Keycloak onLoad : 'check-sso' return error=login_required in url

Viewed 717

I'm working to have a login with keycloak / keycloak-js and the goal is to verify if the user already have a connection to keycloak or no. For that I use onLoad: check-sso during the keycloak.init.

When I have a user and click on the "impersonate", it work fine, but, if the user is not connected, if get a one second error in the url :

http://localhost:8000/#error=login_required&state=... I tried to changed the prompt='none' but it doesn't do nothing

I can't find any way to put a Silent mode to not show error if not logged in in the url bar ?

The project use Keycloak-js and is in Keycloak Server Version is 15.0.2

Still not working

0 Answers
Related