# Setting SSO Discourse with Wordpress

**URL:** https://meta.discourse.org/t/setting-sso-discourse-with-wordpress/124444
**Category:** WordPress
**Created:** [July 30, 2019, 6:23pm UTC](https://meta.discourse.org/t/setting-sso-discourse-with-wordpress/124444 "2019-07-30T18:23:24Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![BishopV](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bishopv/32/185715_2.png) [@BishopV](https://meta.discourse.org/u/BishopV)
#### Post date: [July 30, 2019, 6:23pm UTC](https://meta.discourse.org/t/setting-sso-discourse-with-wordpress/124444/1 "2019-07-30T18:23:24Z")

</div>

recently i want to setup my discourse and wordpress with one single login user name and password , since my members discuss everything at discourse but other make payment at wordpress.

1. in my idea i would like let my member no need to trouble signup an account again at wordpress , when they login at discourse at the same time logined at wordpress too and make payment .

**What i done at Discourse site**  
enable sso provider : YES  
sso url : Wordpress URL  
sso secret : same as wordpress  
sso provider secrets : Wordpress URL + same as wordpress  
enable sso : NO

**What i done at wordpress site**  
**Connection**  
Discourse URL : done  
API Key : Done  
Publishing Username : System

Publishing : haven’t set anything yet  
Comment Settings : haven’t set anything yet  
Text Content Settings : haven’t set anything yet  
Webhook Settings : haven’t set anything yet

SSO  
SSO Secret Key : YES  
SSO Provider Settings : haven’t set anything yet  
SSO Client : Enable SSO Client : checked  
SSO Client : Add Login Link : checked  
SSO Client : Login Link Redirect : [www.MyDiscoursePage.com](http://www.MyDiscoursePage.com)  
SSO Client : Sync Existing Users by Email : checked  
SSO Client : Sync Logout with Discourse : checked

may i know anything i missed ?

1. i would like to sync their data like email or username into wordpress .

**What i done**  
i searching some solution at here ,as i know i need to export CSV and import into the wordpress if im wrong please recorrect me thanks .

1. because i setup discourse first so all the user name and password under discourse here , but after import it to wordpress it will be same username and password as discourse ?

2. one thing im confuse what is the difference with SSO provider and SSO Client ? in this case my discourse site will be SSO provider ? since all my database at discourse.

---

<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: [July 30, 2019, 6:38pm UTC](https://meta.discourse.org/t/setting-sso-discourse-with-wordpress/124444/2 "2019-07-30T18:38:35Z")

</div>

> [@BishopV](#):
>
> recently i want to setup my discourse and wordpress with one single login user name and password , since my members discuss everything at discourse but other make payment at wordpress.

Is logging into WordPress from Discourse working for you?

> [@BishopV](#):
>
> may i know anything i missed ?

You don’t need to fill in the `sso url` or `sso secret` fields when using Discourse as the SSO Provider.  
Filling in these fields will not break the SSO provider functionality though.

The `sso provider secrets` field is used for the SSO secret when Discourse is the SSO provider. That field should look similar to this once it’s configured:

 ![image](https://global.discourse-cdn.com/meta/original/3X/d/0/d08bb702135b04c89575f234b06d1129c48ba1a7.png)

> [@BishopV](#):
>
> i would like to sync their data like email or username into wordpress .

For new users the email and Discourse Username will be set when they first login to WordPress from Discourse.

> [@BishopV](#):
>
> i searching some solution at here ,as i know i need to export CSV and import into the wordpress if im wrong please recorrect me thanks .

You do not need to import your Discourse users to WordPress. New accounts will be created when users login to WordPress through Discourse.

> [@BishopV](#):
>
> because i setup discourse first so all the user name and password under discourse here , but after import it to wordpress it will be same username and password as discourse ?

The username will be the same, but the password is set randomly. Users will need to click the ‘forgot password’ link on WordPress if they would like to login to WordPress with a username/password instead of logging in through Discourse.

> [@BishopV](#):
>
> one thing im confuse what is the difference with SSO provider and SSO Client ?

The SSO Provider is the source of authentication. For your case, Discourse is the SSO Provider and WordPress is the SSO Client.

---

<div class="post-metadata">

### Author: ![BishopV](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bishopv/32/185715_2.png) [@BishopV](https://meta.discourse.org/u/BishopV)
#### Post date: [July 31, 2019, 1:19am UTC](https://meta.discourse.org/t/setting-sso-discourse-with-wordpress/124444/3 "2019-07-31T01:19:02Z")

</div>

> [@simon](#):
>
> > recently i want to setup my discourse and wordpress with one single login user name and password , since my members discuss everything at discourse but other make payment at wordpress.
> 
> Is logging into WordPress from Discourse working for you?

may i know what should i testing and know it’s working or not ?
