Skip to content

Commit d0cce9c

Browse files
authored
fixes #2440 update the email to eml to extract the email from the token (#2441)
1 parent 7140bac commit d0cce9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unified-security/src/main/java/com/networknt/security/AbstractJwtVerifyHandler.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public Status handleJwt(HttpServerExchange exchange, String pathPrefix, String r
119119

120120
String clientId = claims.getStringClaimValue(Constants.CLIENT_ID_STRING);
121121
String userId = claims.getStringClaimValue(Constants.USER_ID_STRING);
122-
String email = claims.getStringClaimValue(Constants.EMAIL);
122+
String email = claims.getStringClaimValue(Constants.EML);
123123
String host = claims.getStringClaimValue(Constants.HOST);
124124
String issuer = claims.getStringClaimValue(Constants.ISS);
125125
// try to get the cid as some OAuth tokens name it as cid like Okta.

0 commit comments

Comments
 (0)