# OAuth connection of discourse

**URL:** https://meta.discourse.org/t/oauth-connection-of-discourse/164182
**Category:** Support
**Created:** [September 16, 2020, 8:46am UTC](https://meta.discourse.org/t/oauth-connection-of-discourse/164182 "2020-09-16T08:46:17Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [September 16, 2020, 9:11am UTC](https://meta.discourse.org/t/oauth-connection-of-discourse/164182/2 "2020-09-16T09:11:58Z")

</div>

No, the google oauth2 settings will only work for connecting to google. To connect to a custom OAuth2 service, you should take a look at

> [@Discourse OAuth2 Basic](https://meta.discourse.org/t/oauth2-basic-support/33879):
>
> discourse2Summary Discourse OAuth2 Basic supports basic OAuth2 providers, assuming they have a JSON API endpoint where user details can be retrieved by token.open_bookInstall Guide This plugin is bundled with Discourse core. There is no need to install the plugin separately. Features This plugin allows you to use a basic OAuth2 provider as authentication for Discourse. It should work with many providers, with the caveat that they must provide a JSON endpoint for retri…

Or if your IDP support OpenID Connect, this plugin will be simpler to configure:

> [@Discourse OpenID Connect (OIDC)](https://meta.discourse.org/t/openid-connect-authentication-plugin/103632):
>
> discourse2Summary Discourse OpenID Connect allows an OpenID Connect provider to be used as an authentication provider for Discourse.open_bookInstall Guide This plugin is bundled with Discourse core. There is no need to install the plugin separately. Features The plugin aims to provide a minimal implementation of [the specification](https://openid.net/specs/openid-connect-basic-1_0.html). Specifically, it supports the “Authorization Code Flow”. To get started, follow [the plugin installation instructions](https://meta.discourse.org/t/install-plugins-in-discourse/19157), or contact your hosti…

---

_[View the full topic](https://meta.discourse.org/t/oauth-connection-of-discourse/164182)._
