Skip to content

triauth for KomgaOIDC

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

  • Books and comics
  • Open source
Sign-in through
OpenID Connect bridge
Available in
Every Komga installation
Set up in
application.yml

About Komga

Komga is a self-hosted media server for comics, manga, magazines, and e-books. You point it at folders of files, it builds a library with covers and metadata, and people read in the browser or in reader apps on their phones and e-readers.

Connect Komga to triauth

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

How it works

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

  2. Add the settings below to Komga's application.yml and restart Komga. Replace example.com with your domain and the two placeholders with the client ID and the client secret from the bridge.

    yaml
    komga:
      oauth2-account-creation: true
    spring:
      security:
        oauth2:
          client:
            registration:
              triauth:
                provider: triauth
                client-id: <client ID from the bridge>
                client-secret: <client secret from the bridge>
                client-name: example.com
                scope: openid,email,profile
                authorization-grant-type: authorization_code
                redirect-uri: "{baseUrl}/{action}/oauth2/code/{registrationId}"
            provider:
              triauth:
                issuer-uri: https://oidc.triauth.org/example.com
                user-name-attribute: sub
  3. Open Komga's login page and click the button with your domain's name.

Checkpoint

Komga's login page shows Sign in with example.com, or Continue with example.com in the new interface. 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 account creation on, everyone with an identity at your domain gets a Komga account the first time they sign in, with access to all libraries and no administrator rights. To let only one team in, limit the app to a group when you connect it.
  • Roles and library access stay in Komga's user management. The groups published at your domain are not used.
  • Reader apps and OPDS clients keep signing in with a Komga password or an API key, which each person sets on their own account page.

For the person who connects the app

SettingValue
Redirect addresshttps://<your-komga>/login/oauth2/code/<registration>, where the registration is the key under registration, triauth above
Where in Komgaapplication.yml in the configuration directory, ~/.komga or /config in Docker, or the matching environment variables
Issuerissuer-uri takes https://oidc.triauth.org/<your domain> exactly as the bridge publishes it, and the rest comes from the discovery document
Emailemail_verified must be true, which the bridge sends, so the default check can stay on
Clientwith a secret, Komga sends it as HTTP Basic and no PKCE. Without a secret, set client-authentication-method: none and Komga uses PKCE instead. Both work with the bridge

Komga keeps the client secret, so leave This app can't keep a secret unticked when you connect it on the bridge. Komga's social login guide explains every key.

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.