# Can I require a Discourse login to view things on a different site?

**URL:** https://meta.discourse.org/t/can-i-require-a-discourse-login-to-view-things-on-a-different-site/42430
**Category:** Support
**Created:** [2016年四月12日 07:07 UTC](https://meta.discourse.org/t/can-i-require-a-discourse-login-to-view-things-on-a-different-site/42430 "2016-04-12T07:07:00Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![DeanMarkTaylor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/deanmarktaylor/32/102462_2.png) [@DeanMarkTaylor](https://meta.discourse.org/u/DeanMarkTaylor)
#### Post date: [2016年四月12日 16:09 UTC](https://meta.discourse.org/t/can-i-require-a-discourse-login-to-view-things-on-a-different-site/42430/2 "2016-04-12T16:09:35Z")

</div>

There are two types of [Discourse SSO](https://meta.discourse.org/t/13045?silent=true) (Single Sign On), you want the one where Discourse is the provider:

> [@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/can-i-require-a-discourse-login-to-view-things-on-a-different-site/42430)._
