You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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?
Beta Was this translation helpful? Give feedback.
All reactions