How can we enable Auth0 SSO in Discourse

I’ve looked at this recently with SAML authentication. With the way the plugin is currently setup, it won’t work for SSO login requests that are made from Discourse. What needs to happen for it to work is for the Discourse SSO parameters to be passed to the Identity Provider, and then passed back to WordPress.

It looks like this could be done with Auth0 by sending the Discourse SSO parameters in the RelayState query string. I’m going to add an action to the plugin that can be hooked into for doing things like this.

For now the easiest approach is to use Auth0 to log users in separately to both Discourse and WordPress.