Add a provider#
Administration → Single sign-on (administrators) connects any OpenID Connect provider. Presets fill in the usual values for Checkin, Microsoft Entra ID, Google, Okta, Keycloak, Authentik, Pocket ID and Zitadel; any other provider works from its issuer address.
- Add a provider, pick its preset, and register the callback address it shows at the provider:
https://your-studio/auth/sso/{name}/callback. - Paste the client ID and the secret (none for a public client: PKCE is always used). Test the connection reads the provider's configuration and keys without signing anybody in.
- Decide who gets in: only the people who already have an account, or everyone the provider vouches for — optionally only from some email domains.
Sign-in uses the Authorization Code flow with PKCE, a state and a nonce; ID tokens are verified against the provider's published keys (RS256, ES256…), their issuer, audience and expiry. An account is found by its email only when the provider says the address is verified (or when you trust its addresses), and by the provider's subject from then on, so a changed email at the provider does not move the sign-in to somebody else.
Roles from the provider#
Studio has 4 roles. The provider can choose them, with the claim that carries groups or roles and a few rules.
| Role | What it can do |
|---|---|
| Administrator | Everything: every project, people, single sign-on, the audit log, the system |
| PM | A member whose projects start as PM: plans, approves, ships |
| Developer | A member whose projects start as developer (the default) |
| Client | A member whose projects start as client: reads and comments, no agent |
- Claim that carries groups or roles — the name of the claim in the ID token:
roleswith Checkin,groupswith Entra ID, Okta, Keycloak, Authentik and Pocket ID; a nested claim with dots, likerealm_access.roles. Ask for it in the scopes when the provider needs that (roleswith Checkin,groupswith Okta). - Rules — value → role, in order: the first value found in the claim wins, so put the administrators first.
- Role of new accounts — what an account created at the first sign-in gets when no rule matches.
- Follow the provider at every sign-in — off, the rules apply only when the account is created and the role is then yours to change in Studio; on, every sign-in applies them again, except when no rule matches (the role stays) and to the last administrator, who is never demoted.
With Checkin: give each person their roles in the application there (Applications → Studio → Roles) or default roles to everyone, then map them here: admin → Administrator, pm → PM, member → Developer, client → Client. The role of a member is the one their projects start with: the role on each project stays in the project's Members & roles.
The second factor#
By default the provider answers for the second factor — Checkin asks for a passkey, the authenticator app or a code by email, and says so in the token. Turn on Still ask for our second factor to also ask for the one set up in Studio, after the provider. Sign out at the provider too ends the session there as well when people sign out of Studio.
Single sign-on only#
Single sign-on only leaves passwords and passkeys to the administrators, at /login?local=1, as the way back in when the provider is not available: everyone else signs in with the account of the organisation. It turns itself off when the last provider is removed or disabled, so nobody is locked out.
In the environment#
One provider can be described in .env instead of the interface — handy for installations set up as code; it shows as read-only.
SSO_OIDC_NAME=Checkin
SSO_OIDC_ISSUER=https://checkin.example.com
SSO_OIDC_CLIENT_ID=
SSO_OIDC_CLIENT_SECRET=
SSO_OIDC_SCOPES="openid profile email roles"
SSO_OIDC_CREATE_USERS=true
SSO_OIDC_ALLOWED_DOMAINS=example.com
SSO_OIDC_ROLE_CLAIM=roles
SSO_OIDC_ROLE_MAP="admin=admin,pm=pm,member=dev,client=client"
SSO_OIDC_SYNC_ROLES=true
SSO_OIDC_REQUIRES_SECOND_FACTOR=false
SSO_OIDC_LOGOUT_AT_PROVIDER=trueProviders must be reached over HTTPS; plain HTTP is accepted for a provider on the same machine, or everywhere with SSO_ALLOW_INSECURE_HTTP=true — for development only.


