mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 12:27:28 +00:00
Merge pull request #2411 from akhilmhdh/debug/entra-saml-logpoint
feat: debug added log points for entra failing saml
This commit is contained in:
@@ -103,6 +103,13 @@ export const registerSamlRouter = async (server: FastifyZodProvider) => {
|
|||||||
const email = profile?.email ?? (profile?.emailAddress as string); // emailRippling is added because in Rippling the field `email` reserved
|
const email = profile?.email ?? (profile?.emailAddress as string); // emailRippling is added because in Rippling the field `email` reserved
|
||||||
|
|
||||||
if (!email || !profile.firstName) {
|
if (!email || !profile.firstName) {
|
||||||
|
logger.info(
|
||||||
|
{
|
||||||
|
err: new Error("Invalid saml request. Missing email or first name"),
|
||||||
|
profile
|
||||||
|
},
|
||||||
|
`email: ${email} firstName: ${profile.firstName as string}`
|
||||||
|
);
|
||||||
throw new BadRequestError({ message: "Invalid request. Missing email or first name" });
|
throw new BadRequestError({ message: "Invalid request. Missing email or first name" });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -7,4 +7,4 @@ scripts/initialize-standalone-build.sh
|
|||||||
|
|
||||||
cd ../
|
cd ../
|
||||||
|
|
||||||
exec node dist/main.mjs
|
exec node --enable-source-maps dist/main.mjs
|
||||||
|
|||||||
Reference in New Issue
Block a user