# 反向单点登录：可以在我的其他网站上使用Discourse账户吗？

**URL:** <https://meta.discourse.org/t/reverse-single-sign-on-possible-to-use-discourse-accounts-on-my-other-site/60170>\
**Category:** SSO\
**Created:** [2017年三月30日 10:07 UTC](https://meta.discourse.org/t/reverse-single-sign-on-possible-to-use-discourse-accounts-on-my-other-site/60170 "2017-03-30T10:07:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pv0](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pv0/32/121119_2.png) [@pv0](https://meta.discourse.org/u/pv0)\
**Post date:** [2017年三月30日 10:07 UTC](https://meta.discourse.org/t/reverse-single-sign-on-possible-to-use-discourse-accounts-on-my-other-site/60170/1 "2017-03-30T10:07:01Z")

</div>

Hello,

I am new here so please be patient if I am not following all your forum rules.

I would like my users to sign in using Discourse so that I don’t have to build my own account management for the main site (for which Discourse will be the forum). Is this possible?

Thank you!

---

<div class="post-metadata">

**Author:** ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)\
**Post date:** [2017年三月30日 10:45 UTC](https://meta.discourse.org/t/reverse-single-sign-on-possible-to-use-discourse-accounts-on-my-other-site/60170/2 "2017-03-30T10:45:12Z")

</div>

Yes it is possible. Check below

> [@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:** ![pv0](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pv0/32/121119_2.png) [@pv0](https://meta.discourse.org/u/pv0)\
**Post date:** [2017年三月30日 10:47 UTC](https://meta.discourse.org/t/reverse-single-sign-on-possible-to-use-discourse-accounts-on-my-other-site/60170/3 "2017-03-30T10:47:04Z")

</div>

Thank you so much Vinoth!

---

<div class="post-metadata">

**Author:** ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
**Post date:** [2017年四月3日 18:33 UTC](https://meta.discourse.org/t/reverse-single-sign-on-possible-to-use-discourse-accounts-on-my-other-site/60170/4 "2017-04-03T18:33:45Z")

</div>


