# Authentik with Immich Setup — retained record

> Retained reddit record from reddit:selfhosted.

Canonical: https://highsignal.app/data/records/462e64b7698fa982

[← sources](https://highsignal.app/data)


source: [reddit](https://highsignal.app/data/reddit) (reddit:selfhosted)  published 2026-09-10 18:00 ingested 2026-09-11 02:40

[original source ↗](https://www.reddit.com/r/selfhosted/comments/1wcqo2q/authentik_with_immich_setup/)

## retained text



```
I am attempting to setup Authentik with Immich. I have both up and running as expected and I created a new provider for Immich and an application that uses that new provider. I put in the client ID and secret key into Immich and the correct provider URL. When I click logging with OAuth, it redirects to Authentik and I can login as expected and it works. But when it redirects back to Immich, it gives me a “Error: 502” and the Immich logs (docker logs -f immich\_server) only shows “api worked exited with code null” when the redirect from Authentik to Immich occurs. No other logs whatsoever regarding the failed login attempt.

I can still login with email and password no problem. I have exhausted Calude tokens trying to get it to work but it has not been able to determine the cause. Any help would be greatly appreciated.
```



document fetched 2026-09-11 00:31 · canonical https://reddit.com/r/selfhosted/comments/1wcqo2q/authentik_with_immich_setup
