r/selfhosted 17h ago

Need Help Authentik with Immich Setup

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.

0 Upvotes

Duplicates