Skip to content

triauth for KavitaOIDC

Let your family or team open Kavita with one approval on their own device, and no Kavita passwords.

  • Books and comics
  • Open source
Sign-in through
OpenID Connect bridge
Available in
Kavita 0.8.8 and newer
Set up in
Settings › OpenID Connect

About Kavita

Kavita is a self-hosted reading server for comics, manga, and e-books. You point it at folders of files and it serves a library with a web reader, reading progress, and an account for each person with their own libraries and age limits. Families and small groups use it to share a book collection the way others share films.

Connect Kavita to triauth

Kavita signs people in through the triauth OpenID Connect bridge. Once connected, the login page shows a button with your domain's name under the password form. People click it, type their username, and approve on their own device. Nobody keeps a Kavita password, and when someone leaves, removing their identity records at your domain ends their access to Kavita as well.

How it works

  1. Open oidc.triauth.org and enter your domain. Paste Kavita's redirect address, https://kavita.example.com/signin-oidc with your own Kavita address in place of kavita.example.com, and click Connect app. The bridge gives you a client ID and a client secret.

  2. In Kavita, open Settings › OpenID Connect and fill in the fields below with your domain in place of example.com. Save, then restart Kavita.

    FieldValue
    Authorityhttps://oidc.triauth.org/example.com
    Client ID and Client secretfrom the bridge
    Provider nameexample.com
    Provision accountson
  3. Under Defaults, choose the roles, libraries, and age rating that new accounts get, and leave Sync user settings with OIDC roles off.

  4. Open Kavita's login page and click the button with your domain's name.

Checkpoint

Kavita's login page shows a button with your domain's name under the password form. Choosing it opens a page from the bridge that asks for the username, and the person's authenticator asks them to approve.

Good to know

  • With Provision accounts on, everyone with an identity at your domain gets a Kavita account the first time they sign in. To let only one team in, limit the app to a group when you connect it.
  • Kavita's role sync expects group values equal to its own role names, such as Login, and the groups published at your domain always carry the domain, such as readers@example.com, which Kavita's Roles prefix cannot strip. Roles and libraries therefore stay in Kavita's user management.
  • Kavita's apps and OPDS readers keep using an API key, so the sign-in change does not reach them.

For the person who connects the app

SettingValue
Redirect addresshttps://<your-kavita>/signin-oidc, under the base URL if you set one
Where in KavitaSettings › OpenID Connect. Authority, Client ID, and Client secret are stored in appsettings.json and need a restart
Authorityexactly https://oidc.triauth.org/<your domain>, no trailing slash. Kavita compares it with the issuer in the discovery document and reads the rest from there
ScopesKavita asks for the scopes the bridge offers, openid profile email offline_access, and drops roles. It renews the bridge's tokens whenever they expire. The sign-in itself rests on Kavita's own cookie, usually seven days, so a renewal the bridge refuses signs nobody out
Password sign-inDisable password authentication leaves only administrators on passwords

Kavita keeps the client secret, so leave This app can't keep a secret unticked when you connect it on the bridge.

Kavita's OpenID Connect settings page with the Provider, Behavior, and Defaults sections
Kavita's OpenID Connect settings. Source: the Kavita wiki, GPL-3.0.

Kavita's OpenID Connect guide explains every setting and the role names.

Next steps

All logos and trademarks belong to their respective owners and do not imply affiliation or endorsement of the organization or product by triauth, nor vice versa. The content provided on this page may include information from third-party sources. We do not assume any responsibility for the completeness, correctness, or applicability of the information. You should independently verify any details before relying on them.