Okta vs Keycloak for Grafana SSO

Okta fits a Grafana team that already runs Okta and will use Grafana Enterprise for SAML and SCIM. Keycloak fits a team that hosts its own identity provider and accepts OpenID Connect setup and ongoing upkeep.

On this page

Okta vs Keycloak for Grafana SSO: which fits your team

Choose Okta if your workforce identity already runs on Okta and you plan to use Grafana Enterprise for SAML sign-in and SCIM provisioning, because Grafana documents SAML authentication and SCIM provisioning only in Grafana Enterprise and Grafana Cloud. Choose Keycloak if you host your own identity provider, you are comfortable configuring OpenID Connect clients, and your team will carry the ongoing upkeep of that server. This page covers only the Grafana integration: how each side signs users in, how Grafana reads roles and groups from the token, and what provisioning requires. The general Okta versus Keycloak comparison is on its own page.

Both routes use OAuth 2.0 sign-in, but the configuration differs. For Okta, Grafana provides a dedicated page for signing in with Okta, set in the Grafana UI under Administration > Authentication > Okta. For Keycloak, you configure Grafana's generic OAuth provider in the [auth.generic_oauth] section, with auth_url, token_url and api_url pointing at your Keycloak realm. Grafana's Keycloak OAuth2 guide maps token claims to the email, login, name and groups attributes and to the role through role_attribute_path. It also documents optional single logout through signout_redirect_url. Team sync for Keycloak is available only in Grafana Enterprise and Grafana Cloud, so decide early whether team membership must follow directory groups. Test role mapping with one account per role before you open access to users.

Provisioning is where the two paths diverge most. Grafana names Entra ID and Okta as the identity providers it supports for SCIM provisioning, and it documents SCIM alongside SAML authentication. Keycloak's SCIM API is listed as supported in its 26.8 release notes, but Grafana's documentation does not name Keycloak as a SCIM source, so confirm that combination with Grafana and in your own test before you plan on automatic deprovisioning. On the Okta side, Okta's pricing page sells Workforce Identity suites per user per month, billed annually, with a $1,500 annual contract minimum. Ask for a written quote that names the suite, the user count and whether SCIM is included. Keycloak's software is Apache-2.0 licensed, so its cost is infrastructure, a production relational database and the staff who run the server through its four planned minor releases a year.

How Okta vs Keycloak for Grafana SSO compares, aspect by aspect

This table compares how Okta and a self-hosted Keycloak server connect to Grafana, across protocol, edition, configuration, claim mapping, logout, provisioning, team sync, hosting, licensing and upgrades. Check the Grafana edition row first, because SAML, team sync and SCIM provisioning are documented only for Grafana Enterprise and Grafana Cloud. Where a cell says confirm, the documentation does not settle the point, so ask Okta or Grafana, or test it in your own environment, before you commit.

AspectOktaKeycloak
Sign-in protocol with GrafanaOAuth 2.0 and OpenID Connect through Grafana's Okta OAuth2 integrationOAuth 2.0 and OpenID Connect through Grafana's Generic OAuth provider (auth.generic_oauth)
Grafana edition neededConfirm with Grafana which edition the Okta OAuth sign-in requiresConfirm for OIDC sign-in; SAML and team sync need Grafana Enterprise or Grafana Cloud
Configuration method and locationGrafana UI under Administration > Authentication > OktaGrafana configuration file, [auth.generic_oauth] section with auth_url, token_url and api_url pointing at Keycloak
Claim and role mappingConfirm the claim and group mapping options with Okta before designing rolesMaps email, login, name, role (role_attribute_path) and groups attributes from Keycloak claims
Single logoutConfirm whether single logout works with Okta in your setupOptional, set through signout_redirect_url in the generic OAuth configuration
SCIM provisioning into GrafanaDocumented for SAML only, with Okta named as a supported provider; SAML needs Enterprise or CloudGrafana's SCIM path names Entra ID and Okta; confirm whether Keycloak can drive provisioning into Grafana
Team syncConfirm whether team sync works with Okta in your Grafana editionAvailable in Grafana Enterprise and Grafana Cloud
Identity provider hosting and licensingOkta-operated cloud in regional cells; per user per month with a $1,500 annual minimum (Okta pricing page)Self-hosted in your infrastructure under Apache-2.0; you fund the servers, database and staff
Who runs upgradesOkta operates the hosted service; confirm change notice and upgrade terms in writingYour team runs upgrades; the project plans four minor releases a year (Keycloak blog, October 2024)

What Grafana requires from an identity provider and its edition

Both platforms sign in through OAuth 2.0 and OpenID Connect. Grafana documents this through its Generic OAuth provider, [auth.generic_oauth], and publishes a separate page for each identity provider. The Okta page describes setting up Okta from the Grafana UI under Administration > Authentication > Okta. The Keycloak page configures the same Generic OAuth provider through configuration keys, with auth_url, token_url and api_url pointing at your Keycloak realm. Because the protocol is shared, the identity provider mainly changes the endpoints, client registration and claims you configure. Record the client ID, client secret and redirect URL for each provider in your change record before you start the Grafana side.

SAML, team sync and active sync require Grafana Enterprise or Grafana Cloud. Grafana's documentation says these features are not available in Grafana open source, and it marks team sync for Keycloak as available only in those two editions. If you plan to map Keycloak groups to Grafana teams, that mapping depends on the edition decision, so settle it before you design group structure in Keycloak. SCIM provisioning is documented for SAML, with Entra ID and Okta named as the supported identity providers. A SCIM-based user lifecycle for Okta is therefore documented only alongside SAML sign-in, and you should confirm that pairing with Grafana before you rely on it for joiner, mover and leaver processes.

Confirm the edition and the sign-in path before you design the rest. Ask Grafana which edition the Okta OAuth sign-in requires, and whether that requirement differs from the Keycloak Generic OAuth setup. Grafana also documents LDAP authentication and JWT proxy authentication. Those methods fall outside this comparison, so if your directory is LDAP or Active Directory, confirm how your identity provider reaches it before you assume Grafana reads it directly. On the Keycloak side, map the role from the claim named by role_attribute_path and test the optional signout_redirect_url setting with your own client before you rely on single logout. The Keycloak page lists the claim mappings to check.

How the Grafana sign-in setup differs for Okta and Keycloak

Okta sign-in needs two sets of settings that must agree: the Okta admin console, where you register Grafana as an application, and the Grafana UI, where you enter the resulting client details. Follow the Grafana Okta page for the exact field names and the values to copy from Okta.

  • Application registration: Create the Okta application for Grafana and record the client ID and client secret that Okta issues for it.
  • Grafana settings location: In the Grafana UI, go to Administration, then Authentication, then Okta, and enter the values from the registration.
  • Redirect address: Copy the callback address from the Grafana page into the Okta application exactly, because a mismatch blocks sign-in.
  • Authorization server and claims: Confirm which Okta authorization server issues the tokens and that the email, name and groups claims Grafana reads are included.
  • Test before rollout: Keep a local Grafana administrator account working until a test user and an administrator have both signed in through Okta.

Check the redirect address, the claims and your Grafana edition before you hand the Okta setup to the application owners.

How a Grafana login moves between the browser, Grafana and the provider

This illustrative sequence shows one Grafana login with Keycloak as the identity provider. The user's browser starts at Grafana, which redirects it to Keycloak's authorization endpoint. After the user signs in, Keycloak returns an authorization code through the browser, and Grafana's server exchanges that code at the token endpoint. Grafana then reads the profile from the userinfo endpoint, maps role and group claims using the settings in role_attribute_path and the groups attribute, and opens a session. Confirm the Okta endpoint names on Grafana's Okta page before you map the Okta flow onto this diagram.

Illustrative Grafana login flow with Keycloak endpoint names; confirm Okta names first.

Who creates users, groups and roles in Grafana, and who removes them

Grafana can receive accounts from an identity provider through SCIM, or assign roles and groups from login claims at sign-in. The six cards below separate what each provider documents from what you still need to test, because the answer depends on your Grafana edition and on how each identity provider is configured.

Okta SCIM into Grafana

Grafana's authentication overview names Okta as a supported identity provider for SCIM provisioning with SAML, and SAML is available only in Grafana Enterprise and Grafana Cloud. Okta can therefore create and update users in Grafana from its directory on those editions and on the SAML path. Confirm the SCIM connector, attribute mapping and deactivation behavior in a test tenant before you rely on it.

Authentication overview

Keycloak SCIM API

Keycloak's Server Administration Guide documents a SCIM API that lets external systems provision users into Keycloak, and the 26.8 release notes list it as supported. That covers the Keycloak side only. A Keycloak-to-Grafana provisioning path is not documented, so confirm it with Grafana before you design around one, and plan for sign-in through OAuth2 claims until you have that answer.

Keycloak admin guide

Role and group claims

Grafana's Keycloak OAuth2 page configures the [auth.generic_oauth] section with auth_url, token_url and api_url, then maps Keycloak claims to Grafana's email, login, name, role and groups attributes. The role comes from role_attribute_path, and group values come from the groups attribute. Test one user per Keycloak role and group and check the Grafana role each one receives, since a mismatched expression can grant the wrong access.

Keycloak OAuth2 page

Keycloak team sync

Grafana marks team sync for Keycloak as available in Grafana Enterprise and Grafana Cloud, so open source Grafana cannot use it. Team sync sets Grafana team membership from Keycloak group membership, which makes Keycloak group names an access decision on the Grafana side. Confirm the team sync result for each group in your edition before Keycloak administrators are allowed to change group membership.

Okta team sync and active sync

Grafana documents SAML authentication, team sync and active sync as available only in Grafana Enterprise and Grafana Cloud. Documentation does not settle which Okta group and user changes reach Grafana through team sync or active sync, so ask Grafana to confirm the Okta-specific team sync and active sync behavior before go-live. If active sync applies to your Okta setup, ask what it changes on Grafana's side.

Okta sign-in docs

Deprovisioning and offboarding

Removing access takes more than disabling an account, because the identity provider, the Grafana user record, team memberships and any active sessions or API tokens can each keep access open. Okta and Keycloak each need a tested answer for that chain, including what happens in Grafana when a user is disabled upstream and when a user leaves a Keycloak group or role. Confirm the offboarding result for both providers in a test environment, including how long access takes to stop.

Where the documentation stops for Okta and Keycloak in Grafana

The first limit applies to both providers. Grafana documents SAML authentication, team sync and active sync only for Grafana Enterprise and Grafana Cloud, and it does not document them for Grafana open source. If your deployment runs on open source, the Okta and Keycloak paths in this comparison are limited to OAuth 2.0 and OpenID Connect sign-in, and you have no documented route to group sync or SAML. Confirm your edition and license tier before you compare anything else, because it decides which of the items below apply to you. Ask Grafana to confirm the edition requirement in writing for the exact version you plan to run, since a security review will check it first.

Provisioning is where the two providers diverge in the documentation. Grafana's authentication overview lists SCIM provisioning for SAML and names Okta among the supported identity providers for it, so an Okta SCIM flow is documented only on the SAML path. That means choosing Okta for automated provisioning also means choosing SAML, and SAML requires Enterprise or Cloud. Keycloak's SCIM API lets external systems provision users into Keycloak itself. It is not documented as provisioning accounts or teams into Grafana, so do not plan a Keycloak SCIM connector to Grafana as a given. Team sync is marked available for Keycloak in Enterprise and Cloud, but team sync for Okta OAuth is not documented, so treat it as unconfirmed until Grafana states otherwise.

Single logout is the third gap. Grafana's Keycloak page documents optional single logout through signout_redirect_url in the [auth.generic_oauth] section, so a Keycloak deployment has a named setting to test. Single logout for Okta is not confirmed for Grafana, so do not assume that signing out of Grafana also ends the Okta session. Ask Okta in writing whether its Grafana integration supports single logout and which admin settings it requires, and ask Grafana to confirm how its Okta sign-out behaves on your edition. Then test both in a non-production instance: sign out of Grafana, check whether the identity provider session ends, and record the result before the security review. The Grafana Keycloak authentication page is the starting point for the Keycloak side of that test.

How a Grafana SSO rollout runs, step by step

This sequence moves from edition and hosting decisions to a tested Grafana sign-in, verified role mapping and a handover runbook. Each step names the person who owns it and the check that closes it, so the platform team can show what was decided and tested before users depend on it.

  1. Confirm the Grafana edition against requirements

    The Grafana admin lists the sign-in features the rollout needs: OAuth or OpenID Connect sign-in, SAML, team sync, SCIM and active sync. Grafana's documentation places SAML authentication, team sync and active sync in Grafana Enterprise and Grafana Cloud only, so any of those requirements decides the edition before the design starts. Confirm the exact feature list for your edition with Grafana, because a requirement that looks small, such as team sync, can change the edition you need. Done when the requirement list is signed off and each item is marked with the edition that supports it.

  2. Choose the identity provider and confirm data location

    The platform team and the identity provider admin choose between Okta, a hosted service, and Keycloak, which your team runs in its own infrastructure. Okta's data residency page describes cells in several regions and says the location of sub-processor processing can vary with the service and cell you select, so get the cell and sub-processor locations in writing. For Keycloak, record the production database you will run, since Keycloak needs a relational database such as PostgreSQL 14 to 18. Done when a decision record names the provider, the hosting location and the data location, and the identity provider admin has signed it off. Okta data residency

  3. Register the application and set client details

    The identity provider admin creates the Grafana application in Okta or in a Keycloak realm as an OpenID Connect client. Set the Grafana root URL and the callback address that your Grafana instance serves, using the exact scheme, host and path, because a mismatch will block sign-in on the first test. Store the client secret in your secret store and limit who can read it. Done when the client exists, the secret is stored in the approved location and the redirect list matches the Grafana address confirmed in the decision record.

  4. Configure Grafana sign-in and test with a pilot group

    The Grafana admin enters the provider settings. For Okta, use the Okta page under Administration > Authentication > Okta in the Grafana UI. For Keycloak, set the auth.generic_oauth section with auth_url, token_url and api_url pointing at your Keycloak realm. Then sign in with a small pilot group that includes at least one administrator and one standard user, and check that email, login and name arrive from the token claims. Done when every pilot user signs in and sees the profile attributes you expected. Configure Keycloak OAuth2 authentication

  5. Map roles and groups and verify access per role

    The Grafana admin sets the role mapping. For Keycloak, that uses role_attribute_path and the groups claim, and the identity provider admin confirms the group membership that feeds it. Create one test account for each intended role, sign in as each one, and check what it can see and change in Grafana against the role matrix agreed before rollout. If the design depends on team sync, treat it as an Enterprise or Cloud feature and test team membership separately. Done when each test account shows only the permissions the matrix assigns and every mismatch has been fixed and retested.

  6. Decide provisioning and offboarding, then document

    The platform team decides how accounts are created and removed. Grafana's authentication overview names Entra ID and Okta as the identity providers it supports for SCIM provisioning with SAML, so confirm whether your provider and edition support automated provisioning and deprovisioning before you rely on it. Keycloak's 26.8 release notes list a SCIM API for provisioning users into Keycloak, but confirm with Grafana how that feeds Grafana. Write a runbook with owners, configuration locations, test accounts and offboarding steps. Done when a test account disabled at the identity provider loses Grafana access and the owners have accepted the runbook.

What Okta and Keycloak each cost to run with Grafana

Okta is paid for as a subscription. Its Workforce Identity suites are priced per user per month and billed annually, with a $1,500 annual contract minimum according to Okta's pricing page. The tier sets what Grafana can use. Starter includes Single Sign-On, which covers the sign-in itself. Essentials adds Lifecycle Management, which governs account creation and removal. Before you price, ask Okta whether the Grafana SCIM provisioning you plan to run requires Lifecycle Management, because the answer decides the tier. Also ask whether billing counts only the users assigned to Grafana or every user in the tenant, since that changes the seat count more than any other input. The subscription recurs for as long as it runs, while configuration work on your side is usually a one-time item.

Keycloak has no license fee because it is Apache-2.0, so its cost is what you run. That includes compute for the Keycloak servers, a production relational database (Keycloak supports PostgreSQL 14 to 18 among its listed options, and the default dev-file database is not suitable for production), backups, monitoring and staff time. Keycloak plans four minor releases a year, and since 26.0 breaking changes in minor releases are opt-in, which limits surprises in routine upgrades. Each upgrade still needs a test against your Grafana client and its role and group mappings, and that work falls to your team or your implementation partner. The largest variable is headcount: who owns the realm, the Grafana client, database failover and the on-call rota. Cost rises with high availability, the number of environments and the audit evidence you must produce.

Grafana Enterprise is the cost both options share when you need SAML, team sync or SCIM. Grafana's documentation lists SAML authentication, team sync and active sync as available only in Grafana Enterprise and Grafana Cloud, and it names Entra ID and Okta as supported SCIM identity providers for SAML. Grafana documents OIDC sign-in for Okta and Keycloak through auth.generic_oauth, so confirm with Grafana which features your edition includes before you assume the line item disappears. For a quote, ask for the Okta edition and user count, whether Lifecycle Management is included, the Grafana Enterprise terms and license count, the Keycloak hosting and database, and the patch and upgrade hours for each year. Separate one-time items (setup, testing, handover) from recurring ones (subscriptions, hosting, upgrades). DeployOpen does not publish prices. A quote follows from a written scope that names deliverables and timelines before work starts.

Okta vs Keycloak for Grafana SSO: what to settle before hiring help

What drives the effort of Grafana SSO with Okta or Keycloak?

Effort depends on your existing identity setup, the Grafana features you need and how many environments must match, and this page cannot measure those for your organization. The main drivers are:

  • Whether an Okta tenant already has the users, groups and admin access you need, or whether Keycloak must be built and hosted first.
  • Which Grafana features are in scope, since SAML, team sync and active sync are limited to Grafana Enterprise and Grafana Cloud.
  • How many groups and roles must map to Grafana roles, and whether those claims already exist in the identity provider.
  • How many Grafana instances, environments and change approvals the rollout must pass through.

Ask for a written scope that lists each driver as a line item, so the quote reflects your environment.

What does the Grafana SSO project need from our internal team?

Plan for four internal roles: an identity provider administrator, a Grafana administrator, database and hosting staff if you run Keycloak, and a pilot group of users. The needs are:

  • An identity provider administrator who can register the application, set its redirect and scopes, and release the email, name and group claims Grafana reads.
  • A Grafana administrator who can change authentication settings and role mapping in Administration > Authentication, or in the configuration file for the generic OAuth route.
  • For Keycloak, a production relational database and hosting for the server, since the default dev-file database is not suitable for production. Keycloak's database guide lists supported engines, including PostgreSQL 14 to 18.
  • A pilot group that tests sign-in, role assignment and sign-out before cutover, plus an owner who approves the rollback plan.

Confirm these people early, because a missing administrator often delays the work more than the configuration does.

Can our own team set up OpenID Connect for Grafana without outside help?

Often yes, if you have an administrator who already manages OAuth2 clients and claim mapping, but the work is larger than the Grafana settings screen. Grafana's Okta page configures Okta under Administration > Authentication > Okta, while Keycloak uses the generic OAuth section, [auth.generic_oauth], with auth_url, token_url and api_url pointing at the server. Your team still has to decide how claims map to Grafana's email, login, name, role (role_attribute_path) and groups attributes, whether single logout through signout_redirect_url is needed, and how the client secret is stored. Test each login path with the pilot group before retiring the old one. If your team lacks one of these skills, ask a provider to list which steps it performs, which steps your team keeps, and how the work is documented. DeployOpen works on fixed scopes agreed in writing before work starts and documents what it configures, so the split of work can be written into that scope.

Which Grafana edition do we need for SSO with Okta or Keycloak?

Grafana open source can sign in through Okta or Keycloak using OAuth2 and OpenID Connect, but SAML, team sync and active sync are available only in Grafana Enterprise and Grafana Cloud. Choose open source if OIDC sign-in with manually managed teams meets your needs. Choose Enterprise or Cloud if you need SAML, team sync from identity provider groups or active sync. Grafana's authentication overview also lists SCIM provisioning for SAML with Entra ID and Okta, so SCIM and SAML belong to the same edition decision. Confirm role mapping from claims in your chosen edition with Grafana, and check the current edition matrix before buying, because editions and feature names change.

Which Okta and Keycloak costs are one-time and which recur?

One-time costs cover design, configuration, testing, the pilot and cutover, while recurring costs come from subscriptions, hosting and upgrades. Okta's pricing page says its Workforce Identity suites are billed per user per month, annually, with a $1,500 annual contract minimum, so the recurring Okta line depends on your user count and chosen suite. Keycloak is licensed under Apache-2.0, so the software carries no license fee, but you pay for hosting, a production database, backups, monitoring and staff time for upgrades. The Keycloak project plans four minor releases a year and a major release every two to three years, according to the Keycloak blog from October 2024, so upgrades recur. If you choose Grafana Enterprise, confirm its terms with Grafana to see whether that cost recurs. Ask for a quote that separates one-time fees, annual subscriptions, infrastructure you own and any retainer for ongoing support, upgrades or testing.

How is the timeline set and what should the written schedule include?

The timeline is set by the decisions and access that gate each step, such as Okta tenant readiness, Keycloak hosting, the confirmed Grafana edition, administrator access, pilot availability and an agreed change window. Most DeployOpen engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. Ask for a written schedule that includes:

  • Milestones for design, build, pilot, cutover and handover, each with a named owner.
  • Dependencies on your side, such as administrator access or a database host, with the date each is needed.
  • Pilot entry and exit criteria, including each login path to be tested.
  • The cutover window and the rollback steps.
  • How scope changes are priced and approved in writing.

If a provider cannot show these dependencies in writing, treat its timeline as unconfirmed.

How DeployOpen sets up Grafana SSO with either provider

DeployOpen is a Chainscore Labs company that plans, implements, integrates, hardens, documents and supports self-hosted open-source platforms inside your own infrastructure. For Grafana, that means setting up either Okta or Keycloak as the identity provider in your cloud account, data center or air-gapped network, with the Grafana settings, claims mapping and access control agreed before work starts.

How we scope

  • The written scope names your Grafana edition, identity provider version and whether SAML, team sync or SCIM are included.
  • Grafana open source has no SAML, team sync or active sync, so confirm your edition before scoping SSO features.
  • Fixed-scope engagements agree deliverables and timelines in writing before work starts, and ongoing support is available as a retainer.

How we build

  • Okta sign-in uses Grafana's Okta provider page, while Keycloak uses the generic OAuth section with its endpoint URLs.
  • Claims mapping for email, login, name, role and groups is built and tested with test accounts from your identity provider.
  • Role attribute paths and optional single logout through signout_redirect_url are set and checked in a staging Grafana.

How we hand over

  • Handover includes the configuration files, identity provider settings and a record of each claim and role mapping.
  • Documentation describes the setup as built, so your compliance and security teams can review the SSO path directly.
  • An open items list names anything your team must still confirm in Okta or Keycloak before sign-off.

How we support

  • Upgrades to Grafana and Keycloak can be scoped as a retainer, since Keycloak plans four minor releases a year.
  • Continuous security testing of the Grafana login path can run as a retainer after the initial build.
  • Security testing of SSO, admin settings and token handling can be scoped separately from the build.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.