mirror of
https://github.com/fosrl/pangolin.git
synced 2026-01-28 22:00:51 +00:00
make username lowercase
This commit is contained in:
@@ -172,10 +172,10 @@ export async function validateOidcCallback(
|
||||
const claims = arctic.decodeIdToken(idToken);
|
||||
logger.debug("ID token claims", { claims });
|
||||
|
||||
const userIdentifier = jmespath.search(
|
||||
let userIdentifier = jmespath.search(
|
||||
claims,
|
||||
existingIdp.idpOidcConfig.identifierPath
|
||||
);
|
||||
) as string | null;
|
||||
|
||||
if (!userIdentifier) {
|
||||
return next(
|
||||
@@ -186,6 +186,8 @@ export async function validateOidcCallback(
|
||||
);
|
||||
}
|
||||
|
||||
userIdentifier = userIdentifier.toLowerCase();
|
||||
|
||||
logger.debug("User identifier", { userIdentifier });
|
||||
|
||||
let email = null;
|
||||
|
||||
Reference in New Issue
Block a user