# How can we enable Auth0 SSO in Discourse

**URL:** <https://meta.discourse.org/t/how-can-we-enable-auth0-sso-in-discourse/28422>\
**Category:** WordPress\
**Tags:** sso, wordpress, discourseconnect\
**Created:** [Maio 7, 2015, 4:04am UTC](https://meta.discourse.org/t/how-can-we-enable-auth0-sso-in-discourse/28422 "2015-05-07T04:04:27Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [Junho 19, 2017, 6:06pm UTC](https://meta.discourse.org/t/how-can-we-enable-auth0-sso-in-discourse/28422/5 "2017-06-19T18:06:21Z")

</div>

> [@blake](#):
>
> 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,

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](https://meta.discourse.org/t/13045?silent=true) 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](https://meta.discourse.org/t/13045?silent=true) 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.

---

_[View the full topic](https://meta.discourse.org/t/how-can-we-enable-auth0-sso-in-discourse/28422)._
