OAuth connection of discourse

Hi Team

For connecting my locally deployed discourse application to my internal OAuth service can I just connect it using client ID and client secret entered into the google OAuth fields in the login settings of the application?

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

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

5 Likes

Hi David

What exactly is openid connect discovery document. Is it the URL of my OAuth service? My OAuth service generates a client ID and client secret once I add a URL of discourse application to it and when I select the application it will have a endpoint. Should I copy that URL into this field?

If your identity service does not have an openid connect discovery document, then you will need to use the OAuth2 Basic plugin (the first link above).

4 Likes