© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
ImmichI
Immich•7mo ago•
44 replies
papi

Authentik <-> Immich OAuth2 Failure

I saw a few people within the Discord (and Authentik Discord) of this issue, but still havent had any luck. I've been banging my head at this issue for days now and cannot seem to find a resolution.

I've tried multiple addresses for ISSUER_URL's (both internal and external addresses) - no luck
I've tried adding immich and authentik on the same network and different.
Different browsers, incognito, recreating the apps, changing the redirect uri's. I feel like im at a loss. hopefully someone can help, i'd greatly appreciate it.


[Nest] 18  - 07/24/2025, 5:26:00 PM   ERROR [Api:OAuthRepository~5cp55hic] Error in OAuth discovery: TypeError: fetch failed

[Nest] 18  - 07/24/2025, 5:26:00 PM   ERROR [Api:OAuthRepository~5cp55hic] TypeError: fetch failed

    at node:internal/deps/undici/undici:13510:13

    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)

    at async performDiscovery (file:///usr/src/app/server/node_modules/openid-client/build/index.js:266:16)

    at async discovery (file:///usr/src/app/server/node_modules/openid-client/build/index.js:243:16)

    at async OAuthRepository.getClient (/usr/src/app/server/dist/repositories/oauth.repository.js:85:20)

    at async OAuthRepository.authorize (/usr/src/app/server/dist/repositories/oauth.repository.js:25:24)

    at async AuthService.authorize (/usr/src/app/server/dist/services/auth.service.js:163:16)

    at async OAuthController.startOAuth (/usr/src/app/server/dist/controllers/oauth.controller.js:36:46)
[Nest] 18  - 07/24/2025, 5:26:00 PM   ERROR [Api:OAuthRepository~5cp55hic] Error in OAuth discovery: TypeError: fetch failed

[Nest] 18  - 07/24/2025, 5:26:00 PM   ERROR [Api:OAuthRepository~5cp55hic] TypeError: fetch failed

    at node:internal/deps/undici/undici:13510:13

    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)

    at async performDiscovery (file:///usr/src/app/server/node_modules/openid-client/build/index.js:266:16)

    at async discovery (file:///usr/src/app/server/node_modules/openid-client/build/index.js:243:16)

    at async OAuthRepository.getClient (/usr/src/app/server/dist/repositories/oauth.repository.js:85:20)

    at async OAuthRepository.authorize (/usr/src/app/server/dist/repositories/oauth.repository.js:25:24)

    at async AuthService.authorize (/usr/src/app/server/dist/services/auth.service.js:163:16)

    at async OAuthController.startOAuth (/usr/src/app/server/dist/controllers/oauth.controller.js:36:46)
Screenshot_2025-07-24_135622.png
Screenshot_2025-07-24_135700.png
Screenshot_2025-07-24_140320.png
Screenshot_2025-07-24_140427.png
Screenshot_2025-07-24_140628.png
Screenshot_2025-07-24_140805.png
immich-compose.yml1.69KB
authentik-compose.yml3.13KB
ImmichJoin
A place to hang out, get support, discuss Immich, get announcements about releases and anything else going on.
36,590Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Authentik + Immich mobile clients
ImmichIImmich / help-desk-support
2y ago
Oauth Immich with Authentik
ImmichIImmich / help-desk-support
3y ago
Trying to get Authentik Oauth2 to work
ImmichIImmich / help-desk-support
3y ago
Immich, Authentik, Caddy with Docker
ImmichIImmich / help-desk-support
11mo ago