Skip to content

OpenID Connect

Mark edited this page Feb 8, 2026 · 1 revision

OpenID Connect

OIDC allows you to use an external authentication service (Authentik, Keycloak, etc.) for user and group authentication. It can be configured in Settings>Security. The following six settings are required to successfully set up oidc. Ensure you use the correct values. Incorrect values or changing values on your authentication server in the future can cause lead to locking you out of the service. In those cases head to Getting "locked" out.

  • well-known configuration endpoint: This is located at /realms/{realm-name}/.well-known/openid-configuration for keycloak or /application/o/{issuer}/.well-known/openid-configuration for authentik.
  • username claim: The claim that should be used for usernames. The username has to be unique. NOTE: Any user logging in with the username of the root admin account will be root admin, no matter what group they're assigned.
  • group claim: This is the claim that contains the group of each user. It should either be a string or a list of strings with one of the following case-insensitive values: untrusted, trusted, or admin. Any user without any groups is assigned the untrusted role.
  • scope: The scopes required to get all the necessary information. The scope openid is almost always required. You need to add all required scopes to that the username and group claim is available.
  • client id
  • client secret

In your auth server settings, make sure you allow for redirecting to /auth/oidc. The oidc-login flow will redirect you there after you log in. Additionally, the access token expiry time from the authentication server will be used if provided. This might be fairly low by default.

Applying settings does not directly invalidate your current session. To test OIDC-settings, press the "log out" button to invalidate your current session.

Warning

Getting locked out

In the case of an OIDC misconfiguration, i.e. changing a setting like your client secret on your auth server, can cause you to be locked out. In these cases, you can head to /login?backup=1, where you can log in using your root admin credentials allowing you to correctly configure any settings.

Clone this wiki locally