40 questions
0 votes
0 answers
40 views
keycloak-js with Nuxt: URL fragments not removed after login, authentication lost/blank page displayed on page reload with URL fragments
I'm using keycloak-js in a Nuxt 4 application for authentication. After login, I am redirected back to my page, but the URL contains session-related query parameters (like ?code=...&state=...&...
1 vote
1 answer
129 views
KeycloakService.init() returns undefined
Whenever I add my Keycloak app initializer to my angular 17 project it returns undefined. Keycloak is running in a docker container locally. The administrator console is working and I have set up my ...
1 vote
0 answers
290 views
Angular 19 + Keycloak: TypeError: A is not a constructor after production build (works in dev)
I am trying to setup an angular (19) app, within an Nx project, with keycloak authentication. The problem I am facing is that, after successfully building the app, I get the following error in the ...
2 votes
0 answers
79 views
Do I need two Keycloak clients for Google login (via Keycloak JS) and direct username/password login in a single realm?
I have a backend written in Java and a frontend in ReactJS, where I am using Keycloak for authentication. My frontend handles two types of login flows: Google Login via Keycloak Identity Provider ...
1 vote
1 answer
622 views
How to handle SSR with provideKeycloak in Angular's appConfig?
I am working on an Angular application with SSR, and I'm trying to upgrade my project to angular 19. I'm using the new keycloak-angular provideKeycloak for authentication. My current configuration ...
0 votes
0 answers
221 views
Keycloak js issues with isTokenExpired and updateToken
Im having some issues with Vue and Keycloak, I might understand something wrong about Keycloak which could cause the issues. So I have a Login page by myself (I dont want to use Keycloaks sso) where ...
1 vote
3 answers
733 views
How to retrieve the code verifier using Keycloak from Angular
I am trying to develop an application with Angular as front, and Java as backend. I need to login via Keycloak, and then send the received code to the back, to generate the token and store it in the ...
1 vote
1 answer
752 views
How to Register Users in Keycloak Using Keycloak-js
I'm building a Next.js application and I have implemented a custom registration page for users. I want to use Keycloak-js to handle user registration directly within the Next.js app, allowing for a ...
1 vote
1 answer
1k views
keycloak-angular with standalone components this._instance undefined causing TypeError on login()
I'm attempting to setup keycloak-angular in a v18 SPA following this approach which seems to have had historic success. When calling the login method keycloak.login() I receive the following error ...
1 vote
0 answers
249 views
OfficeJS - Outlook Web Add-in using OpenId Authentication
I've a VSTO Add'In running in Outlook to integrate some emails with a Web Application in .NET Framework 4.8 that uses openid authentication. Now, Microsoft released the new version of Outlook that no ...
0 votes
0 answers
322 views
Keycloak duplicate session issue
I have two Applications. On running on example.com and another running on example.com/insurance/ I am using Keycloak IDP. The application running on /microinsurance/ is an Angular app 17. In keycloak ...
1 vote
1 answer
341 views
NuxtJS + keycloak-js: frontend doesn't render the correct value
I have a Nuxt3 app which I want to secure with Keycloak. For the integration, I use the keycloak-js library, which is defined as a plugin: plugins/keycloak.client.ts import Keycloak from 'keycloak-js';...
0 votes
0 answers
247 views
redirect to login page fails if token refresh fails using Keycloak.js
I'm encountering an issue with Keycloak in my React application. When the token is no longer valid and a refresh is not possible, a proper logout or redirect to the login page fails. If the logout ...
1 vote
1 answer
558 views
After keycloak login page "Cannot match any routes. URL Segment: '&iss'"
I have an angular application authenticating using keycloak, keycloak-angular and keycloak-js. It was working good but recently it started to throw below error on the console. core.mjs:6484 ERROR ...
1 vote
1 answer
2k views
(keycloak-js) Failed to initialize adapter, keycloak.init doesn't work
I'm using npm packet keycloak-js in vue 3 app. Keycloak server and keycloak-js with same versions 24.0.2 import Keycloak from 'keycloak-js' let initOptions = { url: 'https://address' realm: '...