Single sign-on with OIDC
With an OIDC provider such as Authentik, your family signs in to Kolumi with the accounts they already have. It is optional; without it, people sign in with codes from invitations.
On this page
How it works
Kolumi uses two clients at your provider:
- The app is a public client with PKCE. It signs in at your provider and hands the ID token to Kolumi Server.
- The web interface can use a second, confidential client. That one is optional; without it the web interface signs in with codes.
Kolumi Server checks every ID token against one issuer, KOLUMI_OIDC_ISSUER: signature, expiry, and that it was issued for one of the two client IDs. Both clients therefore have to be issued by this same issuer. We test with Authentik; other providers that follow OpenID Connect should work, but we haven’t tried them.
The app client
| Client type | public, with PKCE |
|---|---|
| Redirect URI | kolumi://auth/callback |
| Scopes | openid profile email |
KOLUMI_OIDC_ISSUER=https://auth.example.org/application/o/kolumi/
KOLUMI_OIDC_CLIENT_ID=kolumi
KOLUMI_OIDC_LABEL=AuthentikKOLUMI_OIDC_LABEL is the text on the sign-in button in the app.
The web interface client (optional)
| Client type | confidential |
|---|---|
| Redirect URI | https://kolumi.example.org/auth/callback, that is KOLUMI_PUBLIC_URL plus /auth/callback |
| Scopes | openid profile email |
KOLUMI_OIDC_WEB_CLIENT_ID=kolumi-web
KOLUMI_OIDC_WEB_CLIENT_SECRET=from your providerRemember the issuer: if the web interface sign-in ends with “The SSO provider’s answer was invalid”, the web client was most likely issued by a different issuer than the app client.
Admins
Members of the group in KOLUMI_ADMIN_GROUP (default kolumi-admin) are admins of the whole Kolumi Server. Kolumi Server reads the group from the groups claim of the ID token, so your provider has to include it. With Authentik, the default profile scope mapping contains the groups. If you don’t want to use groups, list the admins’ OIDC subjects in KOLUMI_ADMIN_SUBS, separated by commas.
Who may create a household
KOLUMI_SIGNUP=sso(default): anyone who signs in with your provider and has no household yet may create one. WithKOLUMI_SIGNUP_GROUP, only members of that group may.KOLUMI_SIGNUP=inviteorclosed: new people need an invitation, from a manager of a household or from the admin under Households → Invite a household.
Admins can always create a household.
Signing in from the app
In Kolumi, choose Connect Kolumi Server and enter the address. The app shows the sign-in button with your label. The first time someone signs in without a household, Kolumi asks how they will use it: Just me or With family create a new household, if KOLUMI_SIGNUP allows it; Accept an invitation joins an existing one with a code.
Example: Authentik
- Create an application
kolumiwith an OAuth2/OpenID provider, client type public, redirect URIkolumi://auth/callback, scopesopenid profile email. Its client ID goes intoKOLUMI_OIDC_CLIENT_ID, its issuer (for examplehttps://auth.example.org/application/o/kolumi/) intoKOLUMI_OIDC_ISSUER. - Optional, for the web interface: a confidential client with redirect URI
KOLUMI_PUBLIC_URL/auth/callback, issued by the same issuer as the app client. Client ID and secret go intoKOLUMI_OIDC_WEB_CLIENT_IDandKOLUMI_OIDC_WEB_CLIENT_SECRET. - Create a group
kolumi-adminand add yourself. - Keep the profile scope mapping active, so the groups end up in the ID token.
- If not every account at your provider should be able to create a household, set
KOLUMI_SIGNUP=invite.
Audiobookshelf and Navidrome
Navidrome has no single sign-on of its own; with Kolumi Server, people never type a Navidrome password, because Kolumi Server signs them in. If Audiobookshelf also uses OpenID, set Match existing users by to Email there (see configuration).
For SSO directly into Audiobookshelf, without Kolumi Server, see getting started.
Something wrong or missing on this page? Write to hello@kolumi.app.