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 typepublic, with PKCE
Redirect URIkolumi://auth/callback
Scopesopenid profile email
.env
KOLUMI_OIDC_ISSUER=https://auth.example.org/application/o/kolumi/
KOLUMI_OIDC_CLIENT_ID=kolumi
KOLUMI_OIDC_LABEL=Authentik

KOLUMI_OIDC_LABEL is the text on the sign-in button in the app.

The web interface client (optional)

Client typeconfidential
Redirect URIhttps://kolumi.example.org/auth/callback, that is KOLUMI_PUBLIC_URL plus /auth/callback
Scopesopenid profile email
.env
KOLUMI_OIDC_WEB_CLIENT_ID=kolumi-web
KOLUMI_OIDC_WEB_CLIENT_SECRET=from your provider

Remember 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. With KOLUMI_SIGNUP_GROUP, only members of that group may.
  • KOLUMI_SIGNUP=invite or closed: 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

  1. Create an application kolumi with an OAuth2/OpenID provider, client type public, redirect URI kolumi://auth/callback, scopes openid profile email. Its client ID goes into KOLUMI_OIDC_CLIENT_ID, its issuer (for example https://auth.example.org/application/o/kolumi/) into KOLUMI_OIDC_ISSUER.
  2. 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 into KOLUMI_OIDC_WEB_CLIENT_ID and KOLUMI_OIDC_WEB_CLIENT_SECRET.
  3. Create a group kolumi-admin and add yourself.
  4. Keep the profile scope mapping active, so the groups end up in the ID token.
  5. 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.