Skip to content
DocumentationAPI ReferenceChangelog
AdministrationTalon Studio v1.1.22-beta

Single Sign-On

Sign in with built-in credentials, or connect GitHub, Google, Microsoft Entra ID or any other OIDC provider for single sign-on, in the Community Edition — and let your identity provider create and deactivate accounts over SCIM.

What it is

Talon authenticates through next-auth. Out of the box it supports username or email plus password. Admins can add OAuth / OIDC single sign-on with GitHub, Google or Microsoft Entra ID.

SSO is in the Community Edition: any licensed instance can add a provider, and an identity provider can create and deactivate accounts over SCIM 2.0. SAML and enforced SSO are not built.

How it works

Credentials — the built-in provider. Passwords are bcrypt-hashed, with optional TOTP two-factor.
OAuth / OIDC providers — GitHub, Google, Microsoft Entra ID and Other OIDC provider (Okta, Ping, Keycloak, Auth0 and others, set up from the issuer URL alone), using the authorisation-code flow with PKCE (S256) and a signed state parameter. Talon asks GitHub for user:email, and the others for openid email profile. Client secrets are encrypted at rest and each provider has its own enable switch.
Matching a sign-in to an account. An identity already linked signs straight in. Otherwise Talon links it to the local account with the same verified email, never an admin account, and only for an allowed email domain when the provider lists any; failing that, it creates a new account if self-registration is allowed.
Verified email required. Both linking to an existing account and self-registering a new one require the identity provider to assert the email is verified — an unverified email is refused rather than linked or provisioned. For GitHub, Talon ignores the profile email and reads the account's email list, accepting only a verified address and preferring the primary one.
Self-registration — off by default. When on, it creates accounts only for the provider's Allowed email domains (with none listed it creates no one), and only from an email the provider has verified. A new SSO user gets the provider's Default role for new users (readonly by default; analyst, engineer or admin can be chosen) and counts against the user limit. Their login handle is the part of the email before the @; the provider's full name becomes their display name.
SSO owns the display name: it re-syncs from the provider at every sign-in. The avatar is filled from the provider only when the user has none.
If a linked account still had a forced password change pending (the bootstrapped admin, say), the first successful SSO sign-in removes the stored password and switches the account to SSO.

Session settings apply to every sign-in method:

NEXTAUTH_URL
The public URL users reach — must be correct behind a proxy.
AUTH_TRUST_HOST
Set true when TLS terminates at a reverse proxy or load balancer, so host headers are trusted.
SESSION_MAX_AGE_DAYS
Absolute session lifetime (default 7).

Signing out an idle session is not an environment variable: an admin sets Sign out after inactivity on Settings → Users & teams (30 minutes by default, or Never). It replaced NEXT_PUBLIC_IDLE_TIMEOUT_MINUTES, which no longer has any effect.

Setup

1
Open Settings → SSO (/settings/sso, admin only) and click Add provider, which opens the Add SSO provider dialog.
2
Pick the provider. The dialog shows the callback URL to register with it — https://<your-instance>/api/auth/sso/<github|google|entra|oidc>/callback — with a copy button. Create the OAuth application at the provider with that redirect URI.
3
Paste the Client ID and Client secret (and the Tenant ID for Microsoft Entra ID, or the Issuer URL for another OIDC provider — Talon reads the sign-in endpoints from its /.well-known/openid-configuration), switch on Enable this provider, and optionally Allow self-registration with its allowed email domains and a default role.
4
Save. Once Org/identity/sso-providers.yaml has had its first commit, a new provider, or a change to one, is staged there with a Pending commit badge and goes live when an admin commits it on Settings → Organisation. A new client secret is never written to the repo: it applies at once and takes the provider's staged settings live with it. A removed provider keeps signing people in until the removal is committed.
5
Confirm NEXTAUTH_URL and AUTH_TRUST_HOST match your deployment so the redirect and cookies work. A live, enabled provider then appears as a button on the sign-in page.

SCIM provisioning

Microsoft Entra ID, Okta and other identity providers can create, rename and deactivate Talon users over SCIM 2.0. Roles stay in Talon: SCIM never sets or changes one.

1
On Settings → API, create a token with Scope set to Organisation and the users:provision scope (Provision users over SCIM). Only an admin can grant it, and a workspace-bound token is refused with 403.
2
In the identity provider's provisioning settings, set the tenant URL to https://<your-instance>/api/scim/v2 and paste the token as the bearer secret.
3
Assign people to the application. The provider creates each account, and deactivates it when the person is unassigned or disabled.
Endpoints
GET and POST /Users, GET, PUT, PATCH and DELETE /Users/{id}, and GET /ServiceProviderConfig. There are no Groups endpoints, and no bulk, sort or ETag support.
Create
userName must be an email address. The account starts readonly with no password, so the person signs in through SSO, which links by verified email. A userName that already exists returns 409.
Update
Only the display name and active are read; every other attribute is ignored.
Deactivate
active: false, or DELETE, disables the account and signs the person out at once. Talon never deletes an account over SCIM, so its history and audit trail stay. The last active admin can't be deactivated.
Reactivate
active: true brings back only an account SCIM itself deactivated. One an admin switched off in Talon stays off until an admin switches it on.
Filter and paging
Only userName eq "…" is supported as a filter. startIndex and count page the list, 100 a page by default and 200 at most.

Once Org/identity/users.yaml has had its first commit, a provisioned account is held inactive until an admin commits it on Settings → Organisation, like one an admin adds. Deactivation never waits for a commit. Every create, deactivation and reactivation is written to the audit log with the token's id.

Usage

Users sign in with a provider button; the callback links their account and syncs profile details. They have ten minutes to finish at the provider before the attempt expires.
A refused sign-in returns to the sign-in page with the reason: self-registration is off, the email isn't verified, the email's domain isn't on the allowed list, the account is disabled, or — while the instance has no licence key — the identity isn't linked to an account yet.
Credentials users enrol TOTP on their profile; SSO users defer MFA to their identity provider.
Groups to roles and teams. On an Other OIDC provider such as Okta, map each identity-provider group to an organisation role, a team, or both. At each sign-in a person gets the highest role their groups map to (the default role when none match, and admin only from a group mapped to admin) and joins or leaves the mapped teams. Lowering access applies at once; raising it waits for the commit of users.yaml or teams.yaml where those are reviewed. Every change is audited, and the last enabled admin is never demoted.
SSO only. Once a provider works, turn on Sign in with SSO only under Settings → Users & teams → Policies to stop password sign-in for everyone but admins.
Tip
If you allow self-registration, keep the default role at readonly — a new SSO sign-in can then see the app but can't act until an admin promotes them, so onboarding stays self-service without handing out edit rights.
Display names re-sync on every login
For SSO-linked accounts, the identity provider's name overwrites the Talon display name at each sign-in. Rename people at the provider — there is no Talon-side field that would survive their next login.

Matches Talon Studio 1.1.18-beta