# SSO with Wp-Discourse plugin

**URL:** https://meta.discourse.org/t/sso-with-wp-discourse-plugin/44617
**Category:** WordPress
**Created:** [5월 22, 2016, 3:41오후 UTC](https://meta.discourse.org/t/sso-with-wp-discourse-plugin/44617 "2016-05-22T15:41:30Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Karthik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/karthik/32/121537_2.png) [@Karthik](https://meta.discourse.org/u/Karthik)
#### Post date: [5월 22, 2016, 3:41오후 UTC](https://meta.discourse.org/t/sso-with-wp-discourse-plugin/44617/1 "2016-05-22T15:41:30Z")

</div>

Hey Guys,

So, I’m trying to install the WP plugin for the following purpose.

- Enable SSO on my blog ([blog.mydomain.com](http://blog.mydomain.com)) so that  
a) Old commenters can be imported to my forum (at [ask.mydomain.com](http://ask.mydomain.com)) as users.  
b) New commenters when signing up to create a comment, will also create a user in Discourse.

- I don’t want to import posts or topics back and forth from Discourse to WP.

Does this sound right? Just making sure that I’m setting my expectations right with the plugin.

Also, what;s the difference between the PrimeTime plugin and the official Discourse-WP plugin on GitHub?

Thanks

---

<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: [5월 22, 2016, 4:08오후 UTC](https://meta.discourse.org/t/sso-with-wp-discourse-plugin/44617/2 "2016-05-22T16:08:58Z")

</div>

Yes, I think it will do what you want. The way the SSO works is that all the authentication is handled by the SSO provider (WordPress). When a user logs in on the Discourse site, they are redirected back to the WordPress site to enter their credentials. If it is their first time logging in to Discourse, a new Discourse user will be automatically created for them.

To only use the plugin for SSO, and not share comments between WordPress and Discourse, do not select the ‘Use Discourse Comments’ checkbox.

---

<div class="post-metadata">

### Author: ![Karthik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/karthik/32/121537_2.png) [@Karthik](https://meta.discourse.org/u/Karthik)
#### Post date: [6월 10, 2016, 10:52오후 UTC](https://meta.discourse.org/t/sso-with-wp-discourse-plugin/44617/3 "2016-06-10T22:52:56Z")

</div>

Thanks Simon,

But I think I got the concept wrong. I’ve set up the plugin successfully. Except that I was expecting new commenters to be created as Discourse forum users as they comment.  
In my WP settings anyone who fills up name and email can comment. Perhaps I should additionally check the feature where “Users have to be registered and logged in to comment.” to be able to add them as users in Discourse.

Is this right?

---

<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: [6월 10, 2016, 11:19오후 UTC](https://meta.discourse.org/t/sso-with-wp-discourse-plugin/44617/4 "2016-06-10T23:19:41Z")

</div>

> [@Karthik](#):
>
> Perhaps I should additionally check the feature where "Users have to be registered and logged in to comment.

Yes, single-sign-on will create Discourse users for people who have accounts on your WordPress site when they first log into your Discourse forum. So this:

> [@Karthik](#):
>
> Enable SSO on my blog ([blog.mydomain.com](http://blog.mydomain.com)) so that a) Old commenters can be imported to my forum (at [ask.mydomain.com](http://ask.mydomain.com)) as users. b) New commenters when signing up to create a comment, will also create a user in Discourse.

will only work for registered users. It won’t work for commenters who have just left a name and an email.

---

<div class="post-metadata">

### Author: ![Karthik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/karthik/32/121537_2.png) [@Karthik](https://meta.discourse.org/u/Karthik)
#### Post date: [6월 10, 2016, 11:31오후 UTC](https://meta.discourse.org/t/sso-with-wp-discourse-plugin/44617/5 "2016-06-10T23:31:07Z")

</div>

Got it. Thanks Simon.
