diff --git a/server/routers/resource/getResourceAuthInfo.ts b/server/routers/resource/getResourceAuthInfo.ts index 4957781f5..f1328833d 100644 --- a/server/routers/resource/getResourceAuthInfo.ts +++ b/server/routers/resource/getResourceAuthInfo.ts @@ -225,7 +225,7 @@ export async function getResourceAuthInfo( wildcard: resource.wildcard ?? false, fullDomain: resource.fullDomain, whitelist: effectivePolicy?.emailWhitelistEnabled ?? false, - skipToIdpId: resource.skipToIdpId, + skipToIdpId: effectivePolicy?.idpId ?? resource.skipToIdpId, orgId: resource.orgId, postAuthPath: resource.postAuthPath ?? null },