Skip to content

Immich

Immich is a self-hosted photo and video backup solution. By integrating Tinyauth as an OpenID Connect provider, you can centralize authentication and offer single sign-on (SSO) for your Immich users.

  • A running instance of Immich
  • A Tinyauth instance
  • HTTPS configured for both services

First, generate an OIDC client for Immich in Tinyauth:

Terminal window
docker run -i -t --rm ghcr.io/tinyauthapp/tinyauth:v5 oidc create immich

From the output, keep the generated client ID and client secret.

Now, configure Tinyauth using environment variables:

Terminal window
TINYAUTH_OIDC_PRIVATEKEYPATH=/path/to/private/key.pem
TINYAUTH_OIDC_PUBLICKEYPATH=/path/to/public/key.pem
TINYAUTH_OIDC_CLIENTS_IMMICH_CLIENTID=client-id
TINYAUTH_OIDC_CLIENTS_IMMICH_CLIENTSECRET=ta-client-secret
TINYAUTH_OIDC_CLIENTS_IMMICH_TRUSTEDREDIRECTURIS=https://immich.example.com/auth/login,https://immich.example.com/user-settings,https://immich.example.com/api/oauth/mobile-redirect,app.immich:///oauth-callback
TINYAUTH_OIDC_CLIENTS_IMMICH_NAME=Immich

Restart your Tinyauth instance after applying the configuration.

In Immich, go to Administration -> Settings -> Authentication Settings and enable OAuth. Use the following values:

Field Value
Enabled true
Issuer URL Your Tinyauth URL, for example https://tinyauth.example.com
Client ID The client ID generated in the previous step
Client Secret The client secret generated in the previous step
Scope openid email profile
Button Text Optional, e.g. Login with Tinyauth
Auto Register Optional, usually true for first login provisioning
Auto Launch Optional, enable only if you want to skip the default Immich login page

Save the settings, then open the Immich login page and use the OAuth button to test the flow.

If authentication is successful, users are redirected to Tinyauth to sign in, then are returned to Immich as authenticated users.