https://auth.example.com 请换成你的 Casdoor 地址(Casdoor 云上类似 https://acme.casdoor.com),其他 example.com 地址也换成你自己的。用 Casdoor 配置 Immich
- 1
在 Casdoor 中注册 Immich
在 Casdoor 控制台打开 应用,为 Immich 添加一个应用,在它的 OIDC/OAuth 标签页复制 客户端ID 和 客户端密钥。把下面的地址加到 重定向URLs:
https://photos.example.com/auth/loginhttps://photos.example.com/user-settingsapp.immich:///oauth-callback
Add the first two for every address you open Immich at; the last one is for the iOS and Android apps.
- 2
Configure OAuth in Immich
In Immich, open Administration → Settings → OAuth, enable OAuth and fill in:
Issuer URL https://auth.example.com Client ID <client ID> Client Secret <client secret> Scope openid email profile Storage Label Claim preferred_username Button Text Login with Casdoor Auto Register On - 3
Sign in
Save, then open Immich in a private window: the login page has a Login with Casdoor button. Existing users can link their account under Account Settings → OAuth.
注意事项
- Immich matches OAuth users to existing accounts by email, so give Casdoor users the same email they use in Immich.
- Auto Launch skips the Immich login page and goes straight to Casdoor.
Immich 的设置取自它的官方文档(核对于 2026年10月:Immich OAuth);另见Casdoor 文档。Immich 是其所有者的商标。
常见问题
Does it work in the Immich mobile app?
Yes, as long as app.immich:///oauth-callback is one of the application's redirect URLs in Casdoor. The app then shows the same OAuth button.
Can Casdoor decide who is an Immich admin?
Immich reads the role from a claim named immich_role by default. Without it, users sign in as regular users and you promote admins in Immich itself.
更多应用集成
查看全部Argo CD
应用集成Connect Argo CD to Casdoor over OpenID Connect: oidc.config in argocd-cm, the client secret, PKCE, CLI login and RBAC from Casdoor groups.
Gitea
应用集成Add Casdoor to Gitea as an OpenID Connect authentication source: the add-oauth command, callback URL, and admins from a Casdoor group.
GitLab
应用集成Configure self-managed GitLab to sign users in with Casdoor over OpenID Connect: gitlab.rb provider settings, account creation and group-based admins.
