Skip to content
This repository has been archived by the owner on Apr 3, 2023. It is now read-only.

Keycloak set token manually #199

Open
adammartiska opened this issue Nov 12, 2022 · 4 comments
Open

Keycloak set token manually #199

adammartiska opened this issue Nov 12, 2022 · 4 comments

Comments

@adammartiska
Copy link

Hello, I would like to ask you if there is any possibility to set obtained token from keycloak manually somehow. In our application we want to bypass keycloak login page and we want to use our own login and registration page. When user tries to log in he is sending POST request to keycloak API and in the response he gets both token and refreshToken . Is there any way to let this library know that I am already authenticated (provide obtained token) and let this library handle token refresh for me?

@ugurcosknn
Copy link

Hey, did you find any solution for this? I want to create custom login page and integrate new token to ReactKeycloakProvider. I guess there is no such a method on provider for this case.

@adammartiska
Copy link
Author

Hey, I haven't found any solution to this, we stopped using React Keycloak library on frontend and have to manage token refresh manually (basically we have postponed refresh token solution for version 2 :D). Still it would be nice to have this feature accessible from this library

@ugurcosknn
Copy link

We already get token from keycloak with credentials via using api. I wish after that we can set the token in keycloak provider easily. Also redirect to login page to our custom react login page in order to keycloak page.

@jpnathan21
Copy link

@ugurcosknn any success?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants