# Best Practice: Wordpress or Discourse as SSO provider

**URL:** https://meta.discourse.org/t/best-practice-wordpress-or-discourse-as-sso-provider/97974
**Category:** WordPress
**Created:** [September 24, 2018, 11:58pm UTC](https://meta.discourse.org/t/best-practice-wordpress-or-discourse-as-sso-provider/97974 "2018-09-24T23:58:05Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jord8on](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jord8on/32/166809_2.png) [@jord8on](https://meta.discourse.org/u/jord8on)
#### Post date: [September 24, 2018, 11:58pm UTC](https://meta.discourse.org/t/best-practice-wordpress-or-discourse-as-sso-provider/97974/1 "2018-09-24T23:58:06Z")

</div>

I’m sure there’s not a catch-all answer for this but I’m hoping to get some thorough advice as to when one should use Wordpress (WP), or Discourse as the SSO provider. I’ve read several posts on Meta and also taken into consideration the suggestion offered in the [WP Discourse](https://github.com/discourse/wp-discourse) plugin itself, like this:

> **Note:** _Discourse has a very good user management system. Don’t enable this setting unless you have a reason to manage your users through WordPress._

I’d love to see some delineation of some examples for which is the best choice for different scenarios, but here’s my scenario:

- I’m building an LMS in WP
- New users will first be introduced to join us by our main WP website
- Users will register and begin taking courses from our main WP site
- Within the first module, users will be invited to participate in the community (Discourse) with and “Introduce Yourself” type post
- Users will typically be starting their day on our main site, and be visiting Discourse from the **Community**

I want to introduce as little friction and potential for problems with SSO as possible. I feel like the right choice is to use Discourse as my SSO provider. But I’m unsure if this will have any negative implications if I’m doing any granular user management in my LMS. e.g. I will be using a plugin that allows different roles (i.e. teacher, student, etc)

Looking forward to feedback from Discourse vetrans!

---

<div class="post-metadata">

### Author: ![jtbayly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jtbayly/32/119510_2.png) [@jtbayly](https://meta.discourse.org/u/jtbayly)
#### Post date: [September 25, 2018, 12:01am UTC](https://meta.discourse.org/t/best-practice-wordpress-or-discourse-as-sso-provider/97974/2 "2018-09-25T00:01:02Z")

</div>

I’m not really experienced in SSO, but to me this sounds like a perfect use-case for using WP as the provider.

---

<div class="post-metadata">

### Author: ![omarfilip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/omarfilip/32/208019_2.png) [@omarfilip](https://meta.discourse.org/u/omarfilip)
#### Post date: [September 25, 2018, 12:08am UTC](https://meta.discourse.org/t/best-practice-wordpress-or-discourse-as-sso-provider/97974/3 "2018-09-25T00:08:27Z")

</div>

> [@jord8on](#):
>
> Users will register and begin taking courses from our main WP site

⬆ I think this is key. Otherwise you would be starting your users in Discourse, sending them to WP, then back to Discourse. WP as SSO provider is better in your case.
