Skip to main content

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​

  1. Click Neuen Anbieter anlegen.
  2. 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.
  3. Register an application at the provider and enter its client ID and client secret.
  4. Save, and copy the redirect URL of the new provider from the list.
  5. Register the redirect URL at the provider.
  6. Log out and try the button on the login page.

Fields​

FieldRequiredMeaning
NameyesName of the provider, shown on the button, for example Google.
SlugyesPart of the URLs of the provider, for example google. Letters, digits, - and _, unique.
Issuer-URLyesThe issuer of the provider, must start with https://. The plugin loads <issuer>/.well-known/openid-configuration from it.
Client-IDyesFrom the application at the provider.
Client-Secretyes, when creatingFrom the application at the provider. When editing, leave it empty to keep the saved secret. Stored encrypted.
ScopesyesSeparated by spaces or commas, for example openid email profile. Must contain openid, the plugin does not add it.
Zusätzliche Authorize-ParameternoA JSON object whose fields are added to the authorization URL, see below.
AktivnoOnly active providers show a button and accept logins.
Beschriftung Login-ButtonnoText of the button. $Name is replaced by the name, for example Weiter mit $Name. Empty means Anmelden mit <Name>.
Farbe Login-ButtonnoBackground colour as #RRGGBB.
Icon Login-ButtonnoClass name of a free Font Awesome icon, for example fa-brands fa-twitch.

The section Erscheinungsbild shows a live preview of the button.

caution

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:

TemplateIssuerScopesDeveloper console
Authentikhttps://<YOUR_DOMAIN>/application/o/<SLUG>/openid email profileyour Authentik instance, see Authentik
Discordhttps://discord.comopenid identify emailDiscord Developer Portal
Googlehttps://accounts.google.comopenid email profileGoogle Cloud Console
Twitchhttps://id.twitch.tv/oauth2openid user:read:emailTwitch 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.