mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-08 04:27:38 +00:00
patch saml sso for rippling
This commit is contained in:
@@ -76,10 +76,10 @@ export const initializeSamlStrategy = async () => {
|
|||||||
|
|
||||||
if (!organization) return done(OrganizationNotFoundError());
|
if (!organization) return done(OrganizationNotFoundError());
|
||||||
|
|
||||||
const email = profile.email;
|
const email = profile?.email ?? profile?.emailAddress // emailRippling is added because in Rippling the field `email` reserved
|
||||||
const firstName = profile.firstName;
|
const firstName = profile.firstName;
|
||||||
const lastName = profile.lastName;
|
const lastName = profile.lastName;
|
||||||
|
|
||||||
let user = await User.findOne({
|
let user = await User.findOne({
|
||||||
email
|
email
|
||||||
}).select("+publicKey");
|
}).select("+publicKey");
|
||||||
|
|||||||
Reference in New Issue
Block a user