triauth for ImmichOIDC
Let your family or team open Immich on the web and on their phones with one approval on their own device, and no Immich passwords.
- Sign-in through
- OpenID Connect bridge
- Available in
- Every Immich installation
- Set up in
- Administration › Settings › OAuth
About Immich
Immich is a photo and video library that runs on your own server. The phone app backs up pictures as they are taken, and the web app and the phone app let people browse, search, and share albums. Families and small teams use it to keep their photos together and off third-party clouds.
Connect Immich to triauth
Immich signs people in through the triauth OpenID Connect bridge. Once connected, the login page on the web and in the phone app shows a button with your domain's name. People click it, type their username, and approve on their own device. Nobody keeps an Immich password, and when someone leaves, removing their identity records at your domain ends their access to Immich as well.
How it works
Open oidc.triauth.org and enter your domain. Paste Immich's redirect address,
https://photos.example.com/auth/loginwith your own Immich address in place ofphotos.example.com. Click Add another redirect URI and addhttps://photos.example.com/user-settings, then once more and addhttps://photos.example.com/api/oauth/mobile-redirect. The first address is for the login page, the second for linking an existing account, and the third for the phone app. Click Connect app. The bridge gives you a client ID and a client secret.In Immich, open Administration › Settings › OAuth, turn it on, and fill in the fields below with your domain in place of
example.comand your Immich address in place ofphotos.example.com. Leave the other fields as they are and save.Field Value Issuer URL https://oidc.triauth.org/example.comClient ID and Client Secret from the bridge Button Text Sign in with example.comMobile Redirect URI Override on Mobile Redirect URI https://photos.example.com/api/oauth/mobile-redirectOpen Immich's login page, on the web or in the phone app, and click Sign in with example.com.
Checkpoint
Immich's login page shows Sign in with example.com 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. The phone app opens the same page and comes back once the person has approved.
Good to know
- With Auto Register on, everyone with an identity at your domain gets an Immich account the first time they sign in, as a regular user with the default storage quota. People who already have an Immich account under the same email address are moved over to the new sign-in. To let only one group in, limit the app to a group when you connect it.
- Administrator rights stay in Immich's user management. The groups published at your domain are not used.
- Each person's username, such as
john, becomes their storage label, the name of their folder under the upload location.
For the person who connects the app
| Setting | Value |
|---|---|
| Redirect addresses | three on one connection: https://<your-immich>/auth/login for the login page, https://<your-immich>/user-settings for linking an account by hand, and https://<your-immich>/api/oauth/mobile-redirect for the phone app. Immich sends the address of the page it was opened from, so people reach Immich at the one address you connected |
| Where in Immich | Administration › Settings › OAuth |
| Issuer | https://oidc.triauth.org/<your domain>. Immich adds the well-known part itself and reads the rest from the discovery document |
| Phone app | the app's own redirect address is app.immich:///oauth-callback, which the bridge does not take. With Mobile Redirect URI Override on, Immich sends the app through https://<your-immich>/api/oauth/mobile-redirect instead, and rewrites the address both when it starts the sign-in and when it finishes it |
| Client | Token Endpoint Auth Method stays at client_secret_post, the default. Immich adds PKCE by itself, since the bridge offers it |
| Claims | sub is the account key and email the address. Storage Label Claim stays at preferred_username, the person's username, and Role Claim stays unused, since the bridge sends no immich_role |
| Sign-out | leave the end session endpoint empty, since the bridge has no sign-out endpoint |
Immich keeps the client secret, so leave This app can't keep a secret unticked when you connect it on the bridge. Immich's OAuth guide explains every setting and the mobile redirect.
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 household or organization an identifier at your domain.
- Read Groups to limit Immich to one group when you connect it.
- Read Immich's OAuth guide for every setting Immich 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.