Repository navigation
Replies: 2 comments
|
did you manage to solve the issue? |
0 replies
|
I am also trying to figure out a similar issue. I can get valid tokens and the user is logged in to Keycloak. However the cookies are never created so the browser is unable to attach to the existing session. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Keycloak version : 16.1.1
Frontend : @react-keycloak/web
I am trying to implement keycloak impersonation using the token-exchange feature. I am successful to invoke the token-exchange endpoint and I have got the response containing access-token for the user to be impersonated. However, to establish the user session in the frontend, I need the keycloak session cookies namely KEYCLOAK_IDENTITY_LEGACY, KEYCLOAK_SESSION_LEGACY, AUTH_SESSION_ID_LEGACY which are missing the token-exchange endpoint.
I have also implemented keycloak SPI to create a custom rest endpoint which is able to invoke the token-exchange endpoint.
How do I set the keycloak session cookies in the response of the custom rest endpoint?
All reactions