Casdoor集成市场

Immich | 应用集成

Immich 单点登录

Immich supports OAuth sign-in with any OpenID Connect provider, in the browser and in its mobile apps. With Casdoor, family members or colleagues sign in to your photo library with the account they already have.

Casdoor 官方核验OIDC移动端 App
你需要一个正在运行的 Casdoor,自己部署或用 Casdoor 云都可以。示例中的 https://auth.example.com 请换成你的 Casdoor 地址(Casdoor 云上类似 https://acme.casdoor.com),其他 example.com 地址也换成你自己的。

用 Casdoor 配置 Immich

  1. 1

    在 Casdoor 中注册 Immich

    在 Casdoor 控制台打开 应用,为 Immich 添加一个应用,在它的 OIDC/OAuth 标签页复制 客户端ID 和 客户端密钥。把下面的地址加到 重定向URLs:

    • https://photos.example.com/auth/login
    • https://photos.example.com/user-settings
    • app.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. 2

    Configure OAuth in Immich

    In Immich, open Administration → Settings → OAuth, enable OAuth and fill in:

    Issuer URLhttps://auth.example.com
    Client ID<client ID>
    Client Secret<client secret>
    Scopeopenid email profile
    Storage Label Claimpreferred_username
    Button TextLogin with Casdoor
    Auto RegisterOn
  3. 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.