From 00ea4fa6c2c93fc65f7b342e3e95a60abcc47e78 Mon Sep 17 00:00:00 2001 From: Frederik Prijck Date: Tue, 18 Jul 2023 11:16:03 +0200 Subject: [PATCH] Do not lowercase org_name claim (#887) --- src/auth/idToken.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/auth/idToken.js b/src/auth/idToken.js index 4c439b864..fc34c51ca 100644 --- a/src/auth/idToken.js +++ b/src/auth/idToken.js @@ -101,7 +101,7 @@ const validate = function (token, options) { ); } - if (payload.org_name.toLowerCase() !== options.organization.toLowerCase()) { + if (payload.org_name !== options.organization.toLowerCase()) { throw new Error( `Organization Name (org_name) claim value mismatch in the ID token; expected "${options.organization}", found "${payload.org_name}"'` );