SSO and Auth0

AI-generated summary

Claire_C asks about integrating Auth0 with Discourse for SSO, seeking insights on the effort and complexity involved. Renato responds by recommending the Discourse OAuth2 Basic Plugin and provides a guide for configuring Auth0 as a login provider. Renato confirms the setup is straightforward, requiring only the configuration of OAuth2 plugin settings with Auth0 credentials like Client ID and Client Secret.

Hi all!

Our team is looking to move our community to Discourse and I was wondering if anyone could tell me about integrating Auth0 with Discourse? I’m currently data gathering, so was there help from Discourse for integrating the SSO or was it only your team that sorted it? How easy/difficult was it?

Thank in advance!

Hi!

You may use the Discourse OAuth2 Basic Plugin.

If enable_local_logins is disabled and this is the single auth provider you have configured, users will automatically go through Auth0’s OAuth flow when logging-in/signing-up.

Thanks @renato!

Have you had experience in setting this up, please? We’re trying to figure out how much work it will be to set it up, effort and time wise. Thanks so much!

The OAuth2 path to add Auth0 as a login option should be really straightforward, basically configuring the OAuth2 plugin by defining the site settings mentioned in the linked documentation, with the values for Client ID, Client Secret, etc that you grab from you Auth0 Application.