Questions tagged [keycloak-angular]
35 questions
4
votes
1 answer
Keycloak does not login with checkLoginIframe true, refresh token is undefined
I'm trying to set up a Keycloak client using Angular 10 (the Keycloak server version is 7.0.1) but I'm experiencing some issues with the checkLoginIframe option.
I have a check-sso Keycloak situation, where the client does not need to be…

davide angelillo
- 41
- 1
- 2
4
votes
2 answers
How to update tokens automatically to keep session active using Keycloak in Angular 9?
I am using a plugin "keycloak-angular".
Version :
"keycloak-angular": "8.0.1",
"keycloak-js": "11.0.2",
angular : 9.1.12
I have set "Access token lifespan" to 1 minute. And I am trying to update Tokens when access token is expired by checking with…

Faiz
- 41
- 1
- 3
2
votes
2 answers
How to logout from Angular app once Keycloak session is terminated using keycloak-angular
I am using keycloak-angular for my login page.
If I terminate a user's session from the Keycloak's admin panel I don't receive any event when doing:
this.keycloakService.keycloakEvents$.subscribe((event: KeycloakEvent) => {
…

John Doe
- 131
- 10
2
votes
0 answers
SpringCloud Dataflow Keycloak Angular 8 integration - 401 Unauthorized (sometimes(?))
I am working on a project with SpringBoot framework at backend and Angular8 at frontend. The connection between front and back is made with an nginx proxy server. I wanted to integrated with Keycloak and I used keycloak-angular v.6.1.0 library…

stav
- 21
- 4
1
vote
0 answers
Why i get 'TypeError: error is undefined'?
I try to integrate Keycloak to my Angular application, so I did a simple application with 2 components.
My package.json :
{
"name": "keycloak-integration",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build":…

Guillaume_BH
- 11
- 1
1
vote
1 answer
Angular SSR (Universal) Website not working with keycloak-js adapter and keycloak-angular plugin
I am strugling to translate my website to Angular SSR for better SEO ranking.
I manage to handle window, document, localStorgae calls in website.
But when I check whole site with Keycloak integration it fails due to window issue again.
I follow this…

Yohan Hirimuthugoda
- 1,053
- 3
- 11
- 20
1
vote
0 answers
sending keycloak refresh_token via url params to iframe
I am working on an Angular app with keycloak.js and keycloak-angular and I am having issues getting access to the keycloak refresh-token.
I embed an iframe from another project that requires me to send the acess-token and the refresh-token in the…

Diego Garcia
- 11
- 3
1
vote
0 answers
integrating keycloak into angular project
guys, I want to integrate Keycloak into my Angular project but I found myself faced with this error TS1259 if there is anyone who has a solution please help
this is a screen that shows the error
here is the function I created
and this is the…

Oualid Abid
- 11
- 1
1
vote
2 answers
keycloak-angular interceptor not sending authorization header
I'm trying to integrate keycloak-angular in my angular application.
The authentication flow works well, however when I make a request to my django api I get a 403. The HTTP_AUTHORIZATION header is missing and I don't understand why. When I…

Miguel Rosales
- 769
- 4
- 13
- 29
1
vote
0 answers
Angular app integrated with key cloak is redirecting to login page ONLY ON page refresh
I have an Angular app, which is configured with key cloak Authentication. Once every 30minutes, the cookie/session set by key cloak gets expired . As per the default behavior, the app is redirecting to login page when the user refreshes the app…

Lisa
- 655
- 3
- 10
- 34
1
vote
1 answer
Why am I getting a blank page from keycloak-angular initialization?
I'm trying to secure a very simple angular application with Keycloak. The actual Keycloak client works fine from a backend Spring Boot integration (the actual REST API), but I'm trying to pull that out into an Angular front end. Trouble is when I…

DrTeeth
- 927
- 2
- 10
- 32
0
votes
0 answers
Issue with Keycloak redirection after incorrect configuration in Angular 13.3.2
I'm facing an issue integrating my Angular application (version 13.3.2) with Keycloak, using the packages "keycloak-angular": "10.0.2" and "keycloak-js": "9.0.3". When the configuration is correct (valid URL, realm, and clientId), the redirection…

SparrowVic
- 274
- 1
- 7
0
votes
0 answers
Keycloak - "Client secret not provided in request" error
Looking for a solution to Unauthorized response from Keycloak server.
On the first time the login is finished successfully, and I got the KEYCLOAK_IDENTITY data into the cookie and i can see the connection on Keycloak admin page.
Then the…
0
votes
1 answer
Why is keycloak-angular not working for embedded iframe?
Our Angular app uses keycloak-angular to handle our connections to Keycloak. Everything works fine except for an iframe in which we display a pdf file loaded from our backend. The pdf is set straight as the source of the iframe and the code is very…

bogilfip
- 1
- 1
0
votes
0 answers
How to enforce uniqueness for a custom user attribute during user registration in Keycloak?
I am working on an Angular/Spring Boot web application project and using Keycloak (Server version 15.0.2) for user management. I need to ensure that a specific custom user attribute is unique for each user during the registration process. Currently,…