Skip to content

Commit

Permalink
misc: readded saml email error
Browse files Browse the repository at this point in the history
  • Loading branch information
sheensantoscapadngan committed Nov 14, 2024
1 parent 4cb935d commit 6bae362
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/src/ee/routes/v1/saml-router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ export const registerSamlRouter = async (server: FastifyZodProvider) => {
},
`email: ${email} firstName: ${profile.firstName as string}`
);

throw new Error("Invalid saml request. Missing email or first name");
}

const userMetadata = Object.keys(profile.attributes || {})
Expand Down

0 comments on commit 6bae362

Please sign in to comment.