Skip to content

Support for OIDC AuthProvider in RefineV4 #6477

Answered by BatuhanW
sunilranaLivspace asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @sunilranaLivspace implementation shouldn't be much different. In refine auth provider's login method, you can call your OIDC provider redirect method. Then it will redirect you to a path you defined. You can create a page here, for example my-app/redirect and parse tokens in the query params, and persist them in your storage.

Only thing you need to do is to implement getIdentity method, which will fetch token and/or user information from your oidc provider storage and return user. You can also implement onError method to handle errors and redirect user back to login page.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by BatuhanW
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants