Skip to content

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.

  • Photos and media
  • Open source
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

  1. Open oidc.triauth.org and enter your domain. Paste Immich's redirect address, https://photos.example.com/auth/login with your own Immich address in place of photos.example.com. Click Add another redirect URI and add https://photos.example.com/user-settings, then once more and add https://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.

  2. In Immich, open Administration › Settings › OAuth, turn it on, and fill in the fields below with your domain in place of example.com and your Immich address in place of photos.example.com. Leave the other fields as they are and save.

    FieldValue
    Issuer URLhttps://oidc.triauth.org/example.com
    Client ID and Client Secretfrom the bridge
    Button TextSign in with example.com
    Mobile Redirect URI Overrideon
    Mobile Redirect URIhttps://photos.example.com/api/oauth/mobile-redirect
  3. Open 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

SettingValue
Redirect addressesthree 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 ImmichAdministration › Settings › OAuth
Issuerhttps://oidc.triauth.org/<your domain>. Immich adds the well-known part itself and reads the rest from the discovery document
Phone appthe 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
ClientToken Endpoint Auth Method stays at client_secret_post, the default. Immich adds PKCE by itself, since the bridge offers it
Claimssub 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-outleave 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

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.