Skip to content

Commit

Permalink
Do not lowercase org_name claim (#1295)
Browse files Browse the repository at this point in the history
  • Loading branch information
frederikprijck committed Jul 18, 2023
1 parent c4fc352 commit 49030a4
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 49030a4

Please sign in to comment.