# Login to Discourse with custom Oauth2 provider

**URL:** https://meta.discourse.org/t/login-to-discourse-with-custom-oauth2-provider/14717
**Category:** Feature
**Tags:** oauth2, completed
**Created:** [12 באפריל,‏ 2014,‏ 12:55pm UTC](https://meta.discourse.org/t/login-to-discourse-with-custom-oauth2-provider/14717 "2014-04-12T12:55:42Z")
**Posts on this page:** 1
**Showing post:** 22

<div class="post-metadata">

### Author: ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)
#### Post date: [22 בדצמבר,‏ 2017,‏ 2:38am UTC](https://meta.discourse.org/t/login-to-discourse-with-custom-oauth2-provider/14717/22 "2017-12-22T02:38:30Z")

</div>

SSO means: “I trust «other\_site» to rely on ALL of my authentication and rely on it exclusively for this purpose.”

That other site could be anything - it could be your Corporate SSO site, it could be [something horrible that trusts users completely](https://meta.discourse.org/t/bratwurst-the-wurst-possible-production-sso-provider/72343), it could be a provider that requires an RSA key with certificates, heck it could even be [(another) Discourse](https://meta.discourse.org/t/using-discourse-as-a-sso-provider/32974).

oauth2 means: “This is a login option for my site” such as Google oauth2.

If what you’re trying to do is this:

 ![image](https://global.discourse-cdn.com/meta/original/3X/9/4/94a058f1fc8aea1523a3df5e7c0924abcd47959b.png)

then you want to do as @sam [mentioned](https://meta.discourse.org/t/sso-vs-oauth2-difference/76543/5) and use the plugin (possibly extending it to specifically support your OAuth2 provider.

But if what you’re trying to do is this:

 ![image](https://global.discourse-cdn.com/meta/original/4X/9/5/9/9598fd43f77b4f6d7596621fce1ae283a47b8394.png)

Then you need to write “SSO Provider” as Discourse doesn’t _care_ what’s behind it.

---

_[View the full topic](https://meta.discourse.org/t/login-to-discourse-with-custom-oauth2-provider/14717)._
