App Sign-In (OIDC Identity Provider) 🔒
The Control Center is an OpenID Connect identity provider for the apps on your workspace’s nodes. People sign in to Grafana, Nextcloud, Vaultwarden or any OIDC-capable app with their workspace account: the same password, two-factor check or workspace SSO (SAML / OIDC / Google / GitHub) they use for the Control Center. No separate password per app, no user list per app.
Plan: app sign-in requires Pro or above. Pro allows 3 app clients per workspace, Business 20, Enterprise unlimited. See Billing & Licensing.
Issuer URL
Every workspace has its own issuer:
https://<your Control Center>/oidc/<workspace id>The discovery document is at <issuer>/.well-known/openid-configuration. Settings → SSO shows the issuer of your workspace, and so does GET /api/sso/issuer.
Turning it on for an app
- Install the app on a node (Grafana, Nextcloud, Vaultwarden, or a template with
kind: generic_oidc_env) and give it a domain, so it has a public URL. - On the node, open Settings → Apps & SSO and switch the app on.
- The node registers an OIDC client for the app with the Control Center over its secure agent connection, receives the client id, client secret and issuer, and puts them into the app’s settings. Container apps are recreated with the new settings; this takes a few seconds.
- Open the app and choose Sign in with Quazzar. You go to the Control Center; if you are already signed in there, you come straight back signed in to the app.
Switching the app off on the node deletes its client (every session it held ends) and removes the settings from the app.
What each app gets:
| App | How it is configured | Notes |
|---|---|---|
| Grafana | Generic OAuth env vars | PKCE on. Role from your workspace role: owner / admin → Admin, manager → Editor, everyone else → Viewer. |
| Vaultwarden | SSO_* env vars | Needs a Vaultwarden release with SSO support. Your vault master password is still required. |
| Nextcloud | user_oidc provider file | One manual step, see Nextcloud. |
| Any OIDC app | Template env_map (generic_oidc_env) | ${issuer}, ${client_id}, ${client_secret}, ${redirect_uri}, ${scopes} are filled in. |
| Plex | Not supported | Plex has no OpenID Connect. Put an auth proxy (oauth2-proxy) in front of it if you need SSO; the Plex writer only prepares oauth2-proxy settings. |
Nextcloud
Nextcloud only accepts OIDC providers through its occ command. After switching SSO on, the node writes the provider to <app data>/sso/oidc-provider.json. Run once on the node (values from that file):
docker exec -u www-data <nextcloud container> php occ app:install user_oidc
docker exec -u www-data <nextcloud container> php occ user_oidc:provider Quazzar \
--clientid=<clientId> --clientsecret=<clientSecret> \
--discoveryuri=<discoveryEndpoint> --scope="openid email profile groups" \
--mapping-groups=groups --group-provisioning=1Who can sign in
- Members of the workspace the app’s node belongs to. A person who belongs to several workspaces can sign in to the apps of each of them.
- Not: people from other workspaces, deprovisioned members (SCIM), members of a suspended workspace, and staff impersonation sessions.
- A session from the workspace’s own SSO connector is limited to that workspace, as in the Control Center itself.
There is no consent screen: the apps were registered by your own nodes, so they are trusted.
Claims
| Claim | Value |
|---|---|
sub | Your membership id in the workspace (stable) |
email, email_verified | Your account email (scope email) |
name, preferred_username | Display name and email (scope profile) |
groups | Your workspace role (owner, admin, manager, viewer, teacher) followed by your SCIM groups (scope groups, or always when the app registered a group_claim) |
ID tokens and access tokens are RS256 JWTs valid for one hour. Apps that ask for offline_access also get a refresh token (30 days); each use returns a new one, and presenting an already used refresh token ends that sign-in.
Endpoints
All under the issuer /oidc/<workspace id>:
| Path | |
|---|---|
/.well-known/openid-configuration | Discovery |
/keys | Signing keys (JWKS) |
/auth | Authorization endpoint: code flow, PKCE (S256) |
/token | authorization_code and refresh_token grants; client secret by HTTP Basic or form. Rate limited per IP and per client. |
/userinfo | User info for an access token |
/revoke | Token revocation |
/oauth/introspect | Token introspection (the token’s own client only) |
/end_session | Sign-out: ends the app’s tokens and returns to the app (post_logout_redirect_uri on the app’s own site) |
Redirect URIs must match a registered one exactly (scheme, host, port, path and query).
The Control Center session itself is not ended by an app’s sign-out.
Signing keys
The keys are kept encrypted in the Control Center database (CC_SETTINGS_ENCRYPTION_KEY). A new key is published two minutes before it starts signing and replaces the old one every 30 days (CC_SSO_IDP_KEY_ROTATION). The previous key stays in /keys for 7 days, so tokens it signed keep working until they expire.
Operator setup
- Set
CC_PUBLIC_BASE_URL(Helm:config.publicBaseURL) to the Control Center URL that apps on nodes and browsers reach. Without it (and withoutCC_BASE_URL)/oidc/*stays off and the log says so. - Set
CC_SETTINGS_ENCRYPTION_KEY(Helm:config.settingsEncryptionKey). Without it the signing keys are encrypted with a key derived fromCC_JWT_SECRET. - Nodes need a working agent connection to register clients (they use their node certificate; no API token is involved).
See Configuration for all variables.
API
| Method + path | Who | |
|---|---|---|
GET /api/sso/issuer | settings:read | Workspace issuer URL |
GET /api/sso/clients | settings:read | App clients (no secrets) |
POST /api/sso/clients | settings:write | Register a client by hand: {app_id, display_name, redirect_uris, scopes?, group_claim?}. 402 upgrade_required below Pro or at the plan’s client cap |
GET /api/sso/clients/{id} | settings:write | One client, with its secret |
DELETE /api/sso/clients/{id} | settings:write | Delete by client id or app id; ends its sessions |
POST /api/agent/v1/sso/clients | node (mTLS) | Register / refresh a node app’s client; the answer includes issuer_url |
POST /api/agent/v1/sso/clients/delete | node (mTLS) | {app_id}: delete it |
GET /api/sso/idp/requests/{id} | public | Used by the sign-in page: the app’s name |
POST /api/sso/idp/requests/{id}/approve | signed in | Completes a sign-in; returns {redirect_url} |
POST /api/sso/idp/requests/{id}/cancel | public | {error: "access_denied" | "login_required"}; returns the app’s redirect with the error |
Sign-ins (sso.idp.login) and clients registered or removed by nodes (sso.client.created, sso.client.deleted) are written to the audit log.