Support for OIDC AuthProvider in RefineV4 #6477
-
Can someone help me with OIDC authentication integration with Refine V4? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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 Only thing you need to do is to implement |
Beta Was this translation helpful? Give feedback.
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 implementonError
method to handle errors and redirect user back to login page.