# שיתוף תהליך ההרשמה והכניסה בין Discourse לאתר?

**URL:** https://meta.discourse.org/t/share-sign-up-and-login-between-discourse-and-site/170195
**Category:** SSO
**Created:** [15 בנובמבר,‏ 2020,‏ 2:49pm UTC](https://meta.discourse.org/t/share-sign-up-and-login-between-discourse-and-site/170195 "2020-11-15T14:49:16Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Openmind](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/openmind/32/88333_2.png) [@Openmind](https://meta.discourse.org/u/Openmind)
#### Post date: [15 בנובמבר,‏ 2020,‏ 2:49pm UTC](https://meta.discourse.org/t/share-sign-up-and-login-between-discourse-and-site/170195/1 "2020-11-15T14:49:16Z")

</div>

Hi, I have a discourse forum and a site. The site is built in Django and has a sign-up/account functionality. Is there any way to combine/unify both databases in such a way that users can sign up in one place and the account data is shared between both systems?

---

<div class="post-metadata">

### Author: ![Mevo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mevo/32/187732_2.png) [@Mevo](https://meta.discourse.org/u/Mevo)
#### Post date: [15 בנובמבר,‏ 2020,‏ 3:05pm UTC](https://meta.discourse.org/t/share-sign-up-and-login-between-discourse-and-site/170195/2 "2020-11-15T15:05:19Z")

</div>

Do a search on “SSO”. One site would take care of registration/login and the other would rely on it for that purpose. For example:

> [@Use Discourse as an identity provider (SSO, DiscourseConnect)](https://meta.discourse.org/t/using-discourse-as-a-sso-provider/32974):
>
> So you want to use Discourse as an identity provider for your own web app? Great! Let’s get started. Enable [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true) provider setting Under Discourse admin site settings (/admin/site\_settings) enable setting enable discourse connect provider and add a secret string to discourse connect provider secrets (used to hash SSO payloads). Implement [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true) in your web app: Generate a random [nonce](https://en.wikipedia.org/wiki/Cryptographic_nonce). Let’s call this value NONCE. Save it temporarily so that you can verify it with the …

---

<div class="post-metadata">

### Author: ![Openmind](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/openmind/32/88333_2.png) [@Openmind](https://meta.discourse.org/u/Openmind)
#### Post date: [16 בנובמבר,‏ 2020,‏ 8:35am UTC](https://meta.discourse.org/t/share-sign-up-and-login-between-discourse-and-site/170195/3 "2020-11-16T08:35:52Z")

</div>

Can you show me an example where I can see how exactly it works from a user’s perspective?

---

<div class="post-metadata">

### Author: ![Mevo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mevo/32/187732_2.png) [@Mevo](https://meta.discourse.org/u/Mevo)
#### Post date: [16 בנובמבר,‏ 2020,‏ 8:48am UTC](https://meta.discourse.org/t/share-sign-up-and-login-between-discourse-and-site/170195/4 "2020-11-16T08:48:10Z")

</div>

I guess every website where you can login with Facebook, Google, etc.  
That’s SSO.

Your other website would kind of do that with your Discourse if you use Discourse as SSO provider.

---

<div class="post-metadata">

### Author: ![Openmind](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/openmind/32/88333_2.png) [@Openmind](https://meta.discourse.org/u/Openmind)
#### Post date: [16 בנובמבר,‏ 2020,‏ 8:59am UTC](https://meta.discourse.org/t/share-sign-up-and-login-between-discourse-and-site/170195/5 "2020-11-16T08:59:49Z")

</div>

I think we are talking about different things here. What I want is some kind of merge between my Django accounts and my Discourse user accounts.

---

<div class="post-metadata">

### Author: ![Mevo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mevo/32/187732_2.png) [@Mevo](https://meta.discourse.org/u/Mevo)
#### Post date: [16 בנובמבר,‏ 2020,‏ 9:10am UTC](https://meta.discourse.org/t/share-sign-up-and-login-between-discourse-and-site/170195/6 "2020-11-16T09:10:14Z")

</div>

You ended your initial message by:

> [@Openmind](#):
>
> the account data is shared between both systems

So, if I’m not mistaken, it is what we’re talking about. Merging the databases (really transferring the accounts from what will become the SSO client to the SSO provider) would be additional, I guess. It would just be a one time “merge” when you’re putting the SSO in place (you may have the difficulty of accounts already existing on both sides to handle). Once merged, how do you go forward from there ? With what was described above.
