Skip to Content
DocsControl PanelApp Sign-In (IdP)

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

  1. 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.
  2. On the node, open Settings → Apps & SSO and switch the app on.
  3. 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.
  4. 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:

AppHow it is configuredNotes
GrafanaGeneric OAuth env varsPKCE on. Role from your workspace role: owner / admin → Admin, manager → Editor, everyone else → Viewer.
VaultwardenSSO_* env varsNeeds a Vaultwarden release with SSO support. Your vault master password is still required.
Nextclouduser_oidc provider fileOne manual step, see Nextcloud.
Any OIDC appTemplate env_map (generic_oidc_env)${issuer}, ${client_id}, ${client_secret}, ${redirect_uri}, ${scopes} are filled in.
PlexNot supportedPlex 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=1

Who 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

ClaimValue
subYour membership id in the workspace (stable)
email, email_verifiedYour account email (scope email)
name, preferred_usernameDisplay name and email (scope profile)
groupsYour 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-configurationDiscovery
/keysSigning keys (JWKS)
/authAuthorization endpoint: code flow, PKCE (S256)
/tokenauthorization_code and refresh_token grants; client secret by HTTP Basic or form. Rate limited per IP and per client.
/userinfoUser info for an access token
/revokeToken revocation
/oauth/introspectToken introspection (the token’s own client only)
/end_sessionSign-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 without CC_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 from CC_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 + pathWho
GET /api/sso/issuersettings:readWorkspace issuer URL
GET /api/sso/clientssettings:readApp clients (no secrets)
POST /api/sso/clientssettings:writeRegister 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:writeOne client, with its secret
DELETE /api/sso/clients/{id}settings:writeDelete by client id or app id; ends its sessions
POST /api/agent/v1/sso/clientsnode (mTLS)Register / refresh a node app’s client; the answer includes issuer_url
POST /api/agent/v1/sso/clients/deletenode (mTLS){app_id}: delete it
GET /api/sso/idp/requests/{id}publicUsed by the sign-in page: the app’s name
POST /api/sso/idp/requests/{id}/approvesigned inCompletes a sign-in; returns {redirect_url}
POST /api/sso/idp/requests/{id}/cancelpublic{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.