The discussion revolves around enabling Auth0 SSO between WordPress and Discourse. A user asks how to achieve automatic login into Discourse after logging in via Auth0 on WordPress. Another user suggests using the Auth0 SSO plugin or the Discourse Basic Auth plugin, though the latter isn’t true SSO. blake explains that the wp-discourse plugin may not support SSO from Discourse directly. simon notes that Auth0 can pass Discourse SSO parameters via RelayState, but the wp-discourse plugin currently doesn’t support this. simon confirms that Auth0 can preserve SSO parameters for both username/password and Google logins, indicating a potential workaround. The conversation highlights the need for proper integration between Auth0, WordPress, and Discourse to enable seamless SSO.
I have one new wordpress installation with PrimeTime WordPress + Discourse SSO
plugin for dicourse and wordpress integration and also i am using
Wordpress Auth0 plugin for auth0 integration.
The discourse integration and Auth0 integration Successfully done in
wordpress.
But when i logged in wordpress through the Auth0 i need to automatically
login in discourse also (Single sign on). How can we make the single
sign on in wordpress and discourse. Please suggest the better options..
You could also try using the Discourse Basic Auth plugin and follow this guide to setup Auth0. It’s not SSO, but if you use the same auth0 clientid as your wordpress site they shouldn’t have to create a new username/password since they already exist in auth0.
I’m not really sure but you might be able to get away with using the wp-discourse plugin and setting up SSO to wordpress, but I’m guessing this might not work because Auth0 is the identity provider not wordpress.
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.
I’ve tried this with WP Discourse and the Auth0 WordPress plugin. It seems to work correctly both with an Auth0 username/password and with Google authentication. Auth0 is preserving the Discourse SSO redirect parameter over the login request.