Setting up providers
Providers are managed by administrators under Konfiguration → OIDC-Anbieter (/admin/oidc-anbieter). Each
active provider gets a button on the login page.
Create a provider
- Click Neuen Anbieter anlegen.
- Optional: pick a template under Vorlage. It fills in every field except the client ID and the client secret, and shows where to get them.
- Register an application at the provider and enter its client ID and client secret.
- Save, and copy the redirect URL of the new provider from the list.
- Register the redirect URL at the provider.
- Log out and try the button on the login page.
Fields
| Field | Required | Meaning |
|---|---|---|
| Name | yes | Name of the provider, shown on the button, for example Google. |
| Slug | yes | Part of the URLs of the provider, for example google. Letters, digits, - and _, unique. |
| Issuer-URL | yes | The issuer of the provider, must start with https://. The plugin loads <issuer>/.well-known/openid-configuration from it. |
| Client-ID | yes | From the application at the provider. |
| Client-Secret | yes, when creating | From the application at the provider. When editing, leave it empty to keep the saved secret. Stored encrypted. |
| Scopes | yes | Separated by spaces or commas, for example openid email profile. Must contain openid, the plugin does not add it. |
| Zusätzliche Authorize-Parameter | no | A JSON object whose fields are added to the authorization URL, see below. |
| Aktiv | no | Only active providers show a button and accept logins. |
| Beschriftung Login-Button | no | Text of the button. $Name is replaced by the name, for example Weiter mit $Name. Empty means Anmelden mit <Name>. |
| Farbe Login-Button | no | Background colour as #RRGGBB. |
| Icon Login-Button | no | Class name of a free Font Awesome icon, for example fa-brands fa-twitch. |
The section Erscheinungsbild shows a live preview of the button.
The slug is part of the redirect URL. Changing it changes the redirect URL, which then has to be updated at the provider, too.
Extra authorize parameters
Some providers need additional parameters on the authorization URL. They are entered as a JSON object, for example for Twitch, which only puts the email address into the ID token when it is requested as a claim:
{"claims": "{\"id_token\":{\"email\":null,\"email_verified\":null}}"}
Redirect URL
Every provider has its own redirect URL (also called callback URL):
https://your-site/oidc/<slug>/callback
Copy it from the list with Kopieren … → Redirect-URL and register it exactly like this at the provider.
Login URL
Kopieren … → Login-URL copies the address that starts a login with this provider directly:
https://your-site/oidc/<slug>/login
Use it as the launch URL in app dashboards of providers, see Authentik.
Templates
The dropdown Vorlage on the create page (not on the edit page) lists these templates:
| Template | Issuer | Scopes | Developer console |
|---|---|---|---|
| Authentik | https://<YOUR_DOMAIN>/application/o/<SLUG>/ | openid email profile | your Authentik instance, see Authentik |
| Discord | https://discord.com | openid identify email | Discord Developer Portal |
https://accounts.google.com | openid email profile | Google Cloud Console | |
| Twitch | https://id.twitch.tv/oauth2 | openid user:read:email | Twitch Developer Console |
The templates also set the slug, the button colour and the icon, and for Twitch the extra authorize parameters. Picking a template fills the fields without a reload and moves the cursor to the client ID. Every value can be changed afterwards.
Missing a provider? See Adding a template.
Delete a provider
Löschen in the list deletes the provider together with all links of the users to it. Users who registered only through this provider then need Passwort vergessen? to log in again.