authts / react-oidc-context

Lightweight auth library based on oidc-client-ts for React single page applications (SPA). Support for hooks and higher-order components (HOC).
MIT License
711 stars 67 forks source link

Unable to reconnect on my app with Keycloak 25 #1299

Closed ValGab closed 4 months ago

ValGab commented 4 months ago

I use two applications connected to Keycloak v25. I'm using "monitorSession" to observe movements on the user's session. When I log out of one app, I'm also logged out of the other app. This is good.

On the other hand, when I reconnect to the 1st application, the 2nd application tries to reconnect (on another tab opened) but the reconstructed URL is not good and I get a 404 Not Found on the KC server.

This is the reconstructed URL causing bug : https://MY_DOMAIN/realms/MY_REALM/protocol/openid-connect/df6ed91d-7d1d-4557-bcd2-056dd482b96c

I don't have this problem on version 23 or 24 of Keycloak.