fix(auth): fix SAML tenant extraction and validation (#26482)

- Extract tenant from userInfo in saml-idp (IdP-initiated)
- Add profile.requested?.tenant fallback for OAuth (SP-initiated)
- Block invalid tenant format in hosted (security)
This commit is contained in:
Pedro Castro authored and GitHub committed 2026-01-05 18:52:48 +00:00
1 parent 66b398b4ed
commit 920320d49b
3 files changed
+38 -8

No files matched your search

+1
View File
@@ -42,6 +42,7 @@ declare module "next-auth" {
role?: PrismaUser["role"] | "INACTIVE_ADMIN";
locale?: string | null;
profile?: UserProfile;
samlTenant?: string;
}
}