triauth for KomgaOIDC
Let your household or team open Komga with one approval on their own device, and no Komga passwords.
- 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
Open oidc.triauth.org and enter your domain. Paste Komga's redirect address,
https://komga.example.com/login/oauth2/code/triauthwith your own Komga address in place ofkomga.example.com, and click Connect app. The bridge gives you a client ID and a client secret.Add the settings below to Komga's
application.ymland restart Komga. Replaceexample.comwith your domain and the two placeholders with the client ID and the client secret from the bridge.yamlkomga: 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: subOpen 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
| Setting | Value |
|---|---|
| Redirect address | https://<your-komga>/login/oauth2/code/<registration>, where the registration is the key under registration, triauth above |
| Where in Komga | application.yml in the configuration directory, ~/.komga or /config in Docker, or the matching environment variables |
| Issuer | issuer-uri takes https://oidc.triauth.org/<your domain> exactly as the bridge publishes it, and the rest comes from the discovery document |
email_verified must be true, which the bridge sends, so the default check can stay on | |
| Client | with 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
- Read the OpenID Connect bridge page for what every connected app gets and what the bridge keeps private.
- Read Roll out to your team to give everyone in your organization an identifier at your domain.
- Read Groups to limit Komga to one group when you connect it.
- Read Komga's social login guide for every setting Komga offers.
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.