This documentation site is about the unstable (upcoming) Comentario version.  Switch to the stable version »

Examples of OIDC configurations

Examples of OIDC provider configurations for popular services

Below you can find some examples of common OpenID Connect (OIDC) providers.

Common steps

After you finished adding OIDC provider configuration, you need to restart Comentario, then navigate to domain settings and activate that provider on the Authentication tab.

WARNING
Comentario will not start if the provided configuration is incomplete or incorrect, including situations when requesting the .well-known/openid-configuration document from the server fails for any reason.

Discord

Discord provides complete support for OIDC. In order to connect login via Discord:

  1. Create an application on Discord by visiting Discord Applications page.
  2. Select the OAuth2 item in the sidebar menu.
  3. Copy your key and secret.
  4. Add the following redirect URL: https://<your-comentario-domain>/api/oauth/oidc:discord/callback
  5. Save your changes.
  6. Update the secrets configuration with the above data:
idp:
  oidc:
    - id: discord
      name: Discord
      url: https://discord.com
      scopes:
        - openid
        - identify
        - email
      key: <YOUR_DISCORD_CLIENT_ID>        # Put the correct value here
      secret: <YOUR_DISCORD_CLIENT_SECRET> # And here
  1. Restart Comentario and enable Discord in the domain settings as described above.

See also