Skip to content

Commit

Permalink
Do not lowercase org_name claim
Browse files Browse the repository at this point in the history
  • Loading branch information
frederikprijck authored Jul 18, 2023
1 parent c4fc352 commit 926607e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handlers/callback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ const idTokenValidator =
} else {
assert(session.user.org_name, 'Organization Name (org_name) claim must be a string present in the ID token');
assert.equal(
session.user.org_name.toLowerCase(),
session.user.org_name,
organization.toLowerCase(),
`Organization Name (org_name) claim value mismatch in the ID token; ` +
`expected "${organization}", found "${session.user.org_name}"`
Expand Down

0 comments on commit 926607e

Please sign in to comment.