mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 20:27:12 +00:00
Merge pull request #2946 from akhilmhdh/feat/updated-saml-error-message
Updated saml error message
This commit is contained in:
@@ -123,7 +123,10 @@ export const registerSamlRouter = async (server: FastifyZodProvider) => {
|
|||||||
`email: ${email} firstName: ${profile.firstName as string}`
|
`email: ${email} firstName: ${profile.firstName as string}`
|
||||||
);
|
);
|
||||||
|
|
||||||
throw new Error("Invalid saml request. Missing email or first name");
|
throw new BadRequestError({
|
||||||
|
message:
|
||||||
|
"Missing email or first name. Please double check your SAML attribute mapping for the selected provider."
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
const userMetadata = Object.keys(profile.attributes || {})
|
const userMetadata = Object.keys(profile.attributes || {})
|
||||||
|
|||||||
Reference in New Issue
Block a user