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:
1 parent
66b398b4ed
commit
920320d49b
3 files changed
+38
-8
No files matched your search
Vendored
+1
@@ -42,6 +42,7 @@ declare module "next-auth" {
|
||||
role?: PrismaUser["role"] | "INACTIVE_ADMIN";
|
||||
locale?: string | null;
|
||||
profile?: UserProfile;
|
||||
samlTenant?: string;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user