Skip to content
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 initialized, but not moving to READY state #628

Open
LukeNell opened this issue Feb 21, 2025 · 1 comment
Open

Keycloak initialized, but not moving to READY state #628

LukeNell opened this issue Feb 21, 2025 · 1 comment

Comments

@LukeNell
Copy link

LukeNell commented Feb 21, 2025

I have upgraded my Keycloak-angular to 19.0.2 and keycloak-js to 26.1.0 in my NX workspace. My application is not standalone, so I have used provideAppInitializer to initialize my keycloak.

I have also added the provideKeycloak() with config and features defined in my app.module.ts (Have not given initOptions here).
Once the keycloak initialization is done, I am printing the keycloak object and finding that the authenticated is true, user profile is loaded.

But the only keycloak signal that gets logged is KeycloakAngularInit. It isn't moving to the READY state.
Also, no bearer tokens are getting attached to the API call, so I am suspecting that is also connected to this?

What am I missing here?

@gdetra
Copy link

gdetra commented Feb 21, 2025

Hi, can you post the code with your configuration? Because I have your problem too but with one more. When I reload the page authentication is false (only after login e staying in the same app authentication is true)? Have you encountered too this error?

I wrote my config and usage in issue 600 as last comment.
With this config I have no problem with interceptor for token.

I really appreciate your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants