keycloak-angular icon indicating copy to clipboard operation
keycloak-angular copied to clipboard

Access to Keycloakinstance when I'm not on guarded/authentication needed routes

Open k3rne1pan1c opened this issue 3 years ago • 0 comments

Versions.

"keycloak-angular": "^8.2.0", "keycloak-js": "^14.0.0", "@angular/core": "~11.2.11",

Desired functionality.

Access to the Keycloak Instance throughout the application. Whenever I'm logged in and then move to a route that doesn't need authentication, nor has a Guard observing it I still want to have access to the keycloak instance to show the username etc. How can accomplish this? I figured out that the instance is not shared thorugh my lazy loaded modules, so how do I accomplish this?

I was not able to find any documentation about this, nor anyone with the same issue.

Best regards,

Philipp

k3rne1pan1c avatar Jul 16 '21 09:07 k3rne1pan1c