fix(auth): make identityProviderId lookup case-insensitive (#26405)
SAML IdPs may send NameIDs with different casing than stored, causing login failures. Aligns with the existing case-insensitive email lookup pattern
This commit is contained in:
@@ -865,7 +865,10 @@ export const getOptions = ({
|
||||
},
|
||||
where: {
|
||||
identityProvider: idP,
|
||||
identityProviderId: account.providerAccountId,
|
||||
identityProviderId: {
|
||||
equals: account.providerAccountId,
|
||||
mode: "insensitive",
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user