Describe the bug
Attempting to configure Homarr using OIDC via Cloudflare Zero Trust / Generic OIDC. When I set up the variables in https://homarr.dev/docs/advanced/single-sign-on/ I get the following error in my logs:
2025-11-03T16:41:32.701Z error: Read more at https://errors.authjs.dev#callbackrouteerror name="o" type="CallbackRouteError" kind="error"
at dH (/app/apps/nextjs/.next/server/chunks/8673.js:405:19222)
at async dQ (/app/apps/nextjs/.next/server/chunks/8673.js:405:26325)
at async dS (/app/apps/nextjs/.next/server/chunks/8673.js:405:31006)
at async i (/app/apps/nextjs/.next/server/app/api/auth/[...nextauth]/route.js:1:2373)
at async rN.do (/app/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:5:21042)
at async rN.handle (/app/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:5:25860)
at async k (/app/apps/nextjs/.next/server/app/api/auth/[...nextauth]/route.js:1:7227)
at async rN.handleResponse (/app/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:1:105568)
at async g (/app/apps/nextjs/.next/server/app/api/auth/[...nextauth]/route.js:1:8230)
at async x (/app/apps/nextjs/.next/server/app/api/auth/[...nextauth]/route.js:1:9352)
caused by {"err":{"code":"OAUTH_INVALID_RESPONSE","name":"t"},"expected":"[string redacted]","parameters":{},"provider":"oidc"}
Steps to reproduce
Configure generic OIDC SaaS app via Cloudflare Zero Trust following paramaters from Homarr SSO documents.
Impact
Cannot login to Homarr / complete initial setup.
Additional information
I am using Entra as my IdP so I removed the "groups" scope and set "AUTH_OIDC_GROUPS_ATTRIBUTE" as "roles" as I have read in the documentation for "Azure".
Version
1.43.1
Installation method
Unraid Apps
Browser
Edge (Chromium)
Describe the bug
Attempting to configure Homarr using OIDC via Cloudflare Zero Trust / Generic OIDC. When I set up the variables in https://homarr.dev/docs/advanced/single-sign-on/ I get the following error in my logs:
Steps to reproduce
Configure generic OIDC SaaS app via Cloudflare Zero Trust following paramaters from Homarr SSO documents.
Impact
Cannot login to Homarr / complete initial setup.
Additional information
I am using Entra as my IdP so I removed the "groups" scope and set "AUTH_OIDC_GROUPS_ATTRIBUTE" as "roles" as I have read in the documentation for "Azure".
Version
1.43.1
Installation method
Unraid Apps
Browser
Edge (Chromium)