# 在Discourse和网站之间共享注册和登录吗？

**URL:** https://meta.discourse.org/t/share-sign-up-and-login-between-discourse-and-site/170195
**Category:** SSO
**Created:** [2020年十一月15日 14:49 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:** 1
**Showing post:** 2

<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: [2020年十一月15日 15:05 UTC](https://meta.discourse.org/t/share-sign-up-and-login-between-discourse-and-site/170195/2 "2020-11-15T15:05:19Z")

</div>

搜索“SSO”。一个站点负责注册和登录，另一个站点则依赖它来完成这些功能。例如：

> [@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 …

---

_[View the full topic](https://meta.discourse.org/t/share-sign-up-and-login-between-discourse-and-site/170195)._
