AndolasoftAI-native software partner

Guide

Apache Superset single sign-on: setup guides by provider

How to put Apache Superset behind Okta, Microsoft Entra ID, Keycloak or Google Workspace. Pick your provider, map its groups or roles to Superset roles, and avoid the errors that block most first logins.

Illustration of single sign-on for Apache Superset: sign-in, role mapping and session control.

TL;DR

Superset gets single sign-on from Flask-AppBuilder. Set AUTH_TYPE to AUTH_OAUTH, add your identity provider to OAUTH_PROVIDERS, and map its groups or app roles to Superset roles with AUTH_ROLES_MAPPING. The provider guides below cover each step.

Which guide fits your identity provider?

All four providers use the same AUTH_OAUTH mechanics. What changes is the provider block, the claims it sends and where Superset roles come from.

Okta

Flask-AppBuilder already reads Okta's user info, so a standard setup needs no custom code. Roles come from Okta groups, which must be added to the token. Okta SSO guide.

Microsoft Entra ID (Azure AD)

The Azure handler reads the roles claim, so use app roles rather than groups. App roles also avoid the groups overage claim in large tenants. Entra ID SSO guide.

Keycloak

Use the keycloak provider for Keycloak 17 and later. A new client sends no groups claim, so add a Group Membership mapper first. Keycloak SSO guide.

Google Workspace

Google sends no group information. Restrict sign-in to your domain, then assign roles by domain rule, email pattern or a Google Groups lookup. Google Workspace SSO guide.

How does Superset authentication work?

Superset does not handle logins itself. Flask-AppBuilder does, and AUTH_TYPE in superset_config.py picks one of five methods. Single sign-on with a modern identity provider uses AUTH_OAUTH.

AUTH_TYPEWhat it doesTypical use
AUTH_DBUsernames and passwords in the metadata databaseDefault setup, small teams, demos
AUTH_LDAPChecks users against LDAP or Active DirectoryOn-premise corporate directories
AUTH_OAUTHOAuth 2.0 or OpenID Connect with one or more providersOkta, Entra ID, Google, Keycloak
AUTH_OIDLegacy OpenID 2.0Rarely used today
AUTH_REMOTE_USERTrusts a header set by a proxy in frontBehind a gateway that handles sign-in

Why does every user get the Gamma role after SSO?

Because no role information reached Superset. Nothing matches AUTH_ROLES_MAPPING, so every user gets AUTH_USER_REGISTRATION_ROLE. Check the token your provider sends before you change Superset settings.

Okta

Add the groups claim to the access token as well as the ID token, and request the groups scope.

Entra ID

Define app roles on the app registration, and assign each user or group to a role, not only to the application.

Keycloak

Add the Group Membership mapper to the client's scope with Add to userinfo turned on.

Google Workspace

Google never sends groups. Map roles by domain or email pattern, or look groups up through the Admin SDK Directory API.

Which settings break sign-in behind a reverse proxy?

Most failed callbacks come from the proxy, not the provider. Behind a proxy that ends TLS, Superset builds an http:// callback URL unless told otherwise, and providers reject it.

Set ENABLE_PROXY_FIX

With ENABLE_PROXY_FIX = True, Superset builds the https:// redirect URI that the provider expects.

Use SameSite Lax

A mismatching_state error usually means the session cookie was not sent back. Set SESSION_COOKIE_SAMESITE to Lax, not Strict.

Copy the redirect URI exactly

Providers compare it character by character, including case and trailing slashes. Entra ID reports a mismatch as AADSTS50011.

Does disabling a user end their Superset session?

No. Disabling a user at the provider stops new logins at once, but a session Superset already issued stays valid until it expires. Keep PERMANENT_SESSION_LIFETIME short, and treat it as your real revocation window.

What comes after sign-in?

Single sign-on decides who gets in. Roles and row-level security decide what each person sees. Plan both before the first production login.

Role design

Superset RBAC design for a 500-user enterprise covers the roles your provider's groups should map to.

Tenant isolation

Multi-tenant row-level security in embedded Superset compares three ways to keep each customer's data apart.

FAQ

Questions

Ask us directly
Does Apache Superset support single sign-on?

Yes. Superset uses Flask-AppBuilder for authentication, which supports OAuth 2.0 and OpenID Connect through AUTH_OAUTH. Okta, Microsoft Entra ID, Keycloak and Google Workspace all work with it, mostly without custom code.

Can Apache Superset use SAML for single sign-on?

Not directly. Flask-AppBuilder has no SAML method. Most providers that offer SAML also offer OpenID Connect, which Superset supports. The other route is a proxy that handles sign-in in front of Superset, with AUTH_REMOTE_USER.

Which identity provider is easiest to connect to Superset?

Google Workspace is the quickest to switch on, but it sends no group information. Plan how roles will be assigned before you go live. Okta, Entra ID and Keycloak can send groups or roles in the token, so Superset maps roles on its own.

Do MFA and Conditional Access policies apply to Superset after SSO?

Yes. The login happens at your identity provider, so MFA and access policies run before Superset receives a token. Superset inherits them without extra configuration.

Can Andolasoft set up SSO on our existing Superset?

Yes. A Superset architecture review checks sign-in, roles, proxy settings and session handling on your deployment. You get a written list of fixes in priority order, and we can make the changes with your team.

Need single sign-on working on your Superset?

Tell us your identity provider and how Superset is deployed. We reply with the first step.