Implementing Passwordless Login/Signup in Discourse with Auth0 via APIs

Hi,

I’m building an app that uses Auth0 for user login/signup through passwordless magic links, and all interactions are handled via APIs. I want users to automatically log in to our Discourse community if they are already registered. If they are not registered, I want them to be automatically signed up and logged in via the magic link.

Additionally, if a user logs in via Auth0 on Shopify, can this be extended to automatically log them into Discourse as well?

Can this be achieved using Auth0 with Discourse through APIs, and how should I implement it?

Thanks!

Hi @tgeek8841

Welcome to the Auth0 Community!

I am sorry about the late reply to your post.

As far as I am concerned, the feature that you are looking for is not available on Auth0 at this time. As an alternative, I can suggest to call the Discourse’s Create User API in a Post-Login Action in order to create the user once they authenticate through the magic link on Auth0.

In order to have these users also be logged in, I would recommend to review their documentation on Discourse Connect SSO in order to redirect the user’s after authentication to have them log into Discourse as well.

If you have any additional questions or if you have found a solution on the matter, feel free to leave a reply or post on the community page!

Kind Regards,
Nik

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.