Grafana SSO with Authentik (OIDC)
Connect Grafana Generic OAuth to authentik and map app-specific entitlements to Grafana organization roles.
Last updated
On this page (5)
Grafana · Authentik · OIDC
Before you start
- Grafana with Generic OAuth.
- authentik with application entitlements if using the documented role-mapping recipe.
Configure sign-in
- Create the application and OAuth2/OpenID provider with an exact /login/generic_oauth callback and a signing key.
- Configure Grafana’s Generic OAuth client credentials and authentik authorize, token and userinfo URLs. Request openid profile email plus entitlements when using entitlement mapping.
- Bind approved users/groups to app-specific authentik entitlements. In role_attribute_path map those claim values to Grafana organization roles; explicitly decide if unmatched users should receive Viewer or be denied.
- Decide whether to allow local account creation on first login with allow_sign_up.
Verify the result
- Test entitlement-bearing and unmatched users.
- Pilot existing-account linking without relying on or altering the only recovery administrator account.
