I’d like to understand, if its possible to use Auth0 when my user already authenticated through 3rd party provider and I already got unique user id, which I save to my db and this unique id is connected to my user. Now I want to secure all api requests to my server with accesstokens and refresh tokens, how can I do that with auth0?
Welcome to the Auth0 Community!
If you are authenticating users with a 3rd party provider through your own user store, you can integrate your own database within Auth0 so that users authenticate and register users against it. Also, if you want to authenticate users directly within Auth0 from your 3rd party provider, you can also set up a custom social connection or even an OIDC/SAML connection to the provider itself. However, please keep in mind that both the custom db connection and enterprise connection would require you to have a Professional or Enterprise plan. You can learn more about these plans on our pricing page.
Otherwise, you can register the users to Auth0 from your custom db by making a request to the Management API and then authenticate them using the Resource Owner Password Flow to retrieve an access token, ID token and refresh token from Auth0.
If you have any other questions, let me know!
Kind Regards,
Nik
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.