Single sign-on
Sign in through Entra ID, Okta, Google, Keycloak, Authentik or another OpenID Connect provider.
Set it up
-
Register QuackUI with your provider as a confidential web client using the authorization code flow. The redirect URI is
<QUACKUI_PUBLIC_URL>/api/auth/oidc/callback. -
Put these in
.envand restart.QUACKUI_PUBLIC_URL=https://bi.example.com QUACKUI_OIDC_ISSUER=https://login.example.com/realms/main QUACKUI_OIDC_CLIENT_ID=quackui QUACKUI_OIDC_CLIENT_SECRET=... -
The sign-in page has a new button.
QUACKUI_OIDC_LABELchanges its text.
QuackUI won’t start with only some of these set. The API container needs HTTPS access to the provider.
Who becomes whom
| Person | What happens |
|---|---|
| Already linked | Signs in, even if their email changed |
| Verified email matches a non-admin account | Linked, keeping role and reports |
| Verified email matches an admin | Refused. Admins link from File › Account |
| No match | A viewer account is created |
| No verified email | Only already linked accounts can sign in |
QuackUI trusts email_verified. Use a provider that doesn’t let people claim addresses they don’t own. Limit domains with QUACKUI_OIDC_ALLOWED_DOMAINS. Matching is exact, so example.com doesn’t cover sub.example.com.
Roles never come from claims.
Groups
QUACKUI_OIDC_GROUPS_CLAIM=groups
QUACKUI_OIDC_GROUP_MAP={"finance-team":"Finance","sales":["Sales","Reporting"]}
At each SSO sign-in, membership of every group named here is made to match. Other groups are left alone. If the claim is missing, mapped memberships are removed.
Attributes
Values of user attributes, which row rules can refer to, can come from claims. In File › Attributes, set Values come from to A single sign-on claim and enter the exact name of a top-level claim.
Each SSO sign-in or link replaces the person’s values with the claim’s, one value or a list, from the ID token or, if it hasn’t the claim, from UserInfo. email counts only when the provider marks it verified, and a verified one from UserInfo is used when the ID token has no mark.
| Claim | Values |
|---|---|
Missing, null or empty |
None |
| Any part can’t be used: an object, the wrong kind, a fraction, over 1,000 different values | None. The sign-in goes ahead and a warning is logged |
email, not marked verified |
None |
Numbers can be sent as text, such as "42", and booleans as "true" or "false".
Without a value, people see no rows through rules that use the attribute. Values set this way can’t be edited in File › Users, only removed until the next SSO sign-in. Mapping an attribute, changing its claim or removing the mapping removes everyone’s values at once.
If someone signs in twice at the same moment, or an admin removes their values or changes a mapping meanwhile, a sign-in whose outdated claims would change the values is refused. Signing in again works.
Passwords for admins only
QUACKUI_PASSWORD_LOGIN=admins makes everyone else use SSO. Keep one admin with a password for when the provider is down. It also keeps group and attribute claims fresh: they are read only at an SSO sign-in, so someone who signs in with a password keeps the last ones.
When someone leaves
SSO sessions end after 24 hours unless you change QUACKUI_OIDC_SESSION_MAX_HOURS. API tokens and schedules carry on. QuackUI doesn’t hear of changes at the provider before the next SSO sign-in, so disable the account in File › Users to stop everything at once.
Change or turn it off
A new issuer ends SSO sessions and breaks the old links. Attribute values from claims are removed at the restart, also when the client id changes. Non-admins are linked again by email and admins link again from Account. To turn SSO off, unset the QUACKUI_OIDC_* settings and QUACKUI_PASSWORD_LOGIN, and restart. Attribute values from claims are removed. Group memberships stay. People created by SSO then need a password set by an admin.
