| 1 |
Discourse |
| 2 |
========= |
| 3 |
|
| 4 |
|discourse.jpg| |
| 5 |
|
| 6 |
Presentation |
| 7 |
------------ |
| 8 |
|
| 9 |
`Discourse <https://www.discourse.org/>`__ is a conversation-oriented |
| 10 |
forum engine |
| 11 |
|
| 12 |
Discourse supports `its own Single-Sign-On |
| 13 |
scheme <https://meta.discourse.org/t/official-single-sign-on-for-discourse-sso/13045>`__ |
| 14 |
but is also compatible with standard protocols such as SAML and OpenID |
| 15 |
Connect, through plugins. |
| 16 |
|
| 17 |
This documentation illustrates the OpenID Connect plugin. |
| 18 |
|
| 19 |
First, make sure you have set up LemonLDAP::NG 's |
| 20 |
:doc:`OpenID Connect service<..//openidconnectservice>` and added |
| 21 |
:doc:`a Relying Party for your Discourse instance<..//idpopenidconnect>` |
| 22 |
|
| 23 |
Discourse can use the following OpenID Connect attributes to fill the |
| 24 |
user's profile: |
| 25 |
|
| 26 |
:: |
| 27 |
|
| 28 |
* name |
| 29 |
* email |
| 30 |
* given_name |
| 31 |
* family_name |
| 32 |
* preferred_username |
| 33 |
* picture |
| 34 |
|
| 35 |
Make sure you create a username and password for the Relying Party, and |
| 36 |
that the discourse callback URL is allowed : |
| 37 |
https://discourse.example.com/auth/oidc/callback |
| 38 |
|
| 39 |
Discourse configuration |
| 40 |
----------------------- |
| 41 |
|
| 42 |
Plugin installation |
| 43 |
~~~~~~~~~~~~~~~~~~~ |
| 44 |
|
| 45 |
Install the `Discourse OpenID Connect |
| 46 |
Plugin <https://meta.discourse.org/t/openid-connect-authentication-plugin/103632>`__ |
| 47 |
according to these instructions |
| 48 |
|
| 49 |
Plugin configuration |
| 50 |
~~~~~~~~~~~~~~~~~~~~ |
| 51 |
|
| 52 |
Browse to your Discourse admin interface, and to the plugin settings |
| 53 |
|
| 54 |
- openid_connect_enabled: *Yes* |
| 55 |
- openid_connect_discovery_document: |
| 56 |
https://auth.example.com/.well-known/openid-configuration |
| 57 |
- openid_connect_client_id: *Client ID you chose when configuring the |
| 58 |
Relying Party* |
| 59 |
- openid_connect_client_secret: *Client Secret you chose when |
| 60 |
configuring the Relying Party* |
| 61 |
- openid_connect_authorize_scope: *openid email profile* |
| 62 |
|
| 63 |
.. |discourse.jpg| image:: /applications/discourse.jpg |
| 64 |
:class: align-center |
| 65 |
|