Guide for Immich Oauth2 setup #3994
SPK44
started this conversation in
Show and tell
Replies: 2 comments 1 reply
|
I just followed this today, 2025-12-19, and it worked! Thank you so much! A few notes for anyone else doing this:
I use Traefik to get to both Kanidm and Immich, and the HTTPS certificates for both Kanidm and Immich are provided by Traefik's ACME resolver with a DNS challenge. |
0 replies
|
thanks. just a little addition from my own experience:
|
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This setup uses
immich.example.com:2283as the expected domain name you are hosting immich on, andidm.example-auth.com:8544for your kanidm instance. Replace with the appropriate URLs for your setupKanidm Setup
The final command will provide a secret to be input in the next step.
I'm not familiar or interested enough to setup a storage quota claim, but I assume it would be similar to the role claim, just with the GB quota, if you want that.
Immich Setup
Login as an admin, then click on the profile pic and "Administration".
Expand "Authentication Settings" and "Oauth", then enable "Oauth"
Here are the fields that need to be filled out, some might be defaults,
ISSUER_URL:
https://idm.example-auth.com:8544/oauth2/openid/immichCLIENT_ID:
immichCLIENT_SECRET:
<the value from the kanidm step above>TOKEN_ENDPOINT_AUTH_METHOD:
client_secret_postSCOPE:
openid email profileID_TOKEN_SIGNED_RESPONSE_ALG:
ES256STORAGE LABEL CLAIM:
preferred_usernameROLE CLAIM:
immich_roleNote about HTTPS
It seems like the Immich project doesn't have a way to serve itself over an HTTPS connection, nor do they want to add the ability to do that. The answer seems to be using a reverse proxy. This isn't a problem for my setup, since I use oauth-proxy for external access anyway. (Side note, this article explains how to get the mobile app to work with a similar setup). If you just want to fulfill the HTTPS requirement for kanidm, then the official Immich docs provide more specific instructions and an nginx example configuration.
All reactions