Grafana SSO with Okta (OIDC)

Use Grafana’s Okta provider with an assigned web app and a dedicated role or group claim.

Last updated

On this page (5)

Grafana · Okta · OIDC

Before you start

  • Okta OIDC Web Application and Grafana administrator.
  • Authorization server that exposes the intended claims; check Okta entitlement if using a custom server.

Configure sign-in

  1. Register https://<grafana-host>/login/okta as the sign-in redirect URI and assign the pilot population in Okta.
  2. Configure [auth.okta] in Grafana with the client credentials and the same Okta authorization server’s authorize, token and userinfo endpoints.
  3. Emit a restricted groups or grafana_role claim; evaluate it with role_attribute_path and use role_attribute_strict or an explicit group restriction to deny unmapped users as intended.

Verify the result

  • Check the pilot connects to the intended existing Grafana identity and receives only the expected organization role; verify behavior when a group claim is absent.
  • If configuring sign-out redirects, test whether Okta and Grafana sessions both end. Do not treat role evaluation on login as continuous deprovisioning.

Official documentation

Have Pilae connect your identity provider

Pilae can deploy Grafana with your identity provider already connected. We agree the edition, account mapping and access tests with your team before rollout.