Skip to content

Commit ed43eb5

Browse files
committed
fixes #126 update constants for uid and cid
1 parent c8f3bbe commit ed43eb5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graphql-security/src/main/java/com/networknt/graphql/security/JwtVerifyHandler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,11 @@ public void handleRequest(final HttpServerExchange exchange) throws Exception {
103103
auditInfo.put(Constants.ENDPOINT_STRING, GraphqlUtil.config.getPath());
104104
String clientId = claims.getStringClaimValue(Constants.CLIENT_ID_STRING);
105105
// try to get the cid as some OAuth tokens name it as cid like Okta.
106-
if(clientId == null) clientId = claims.getStringClaimValue(Constants.CID_STRING);
106+
if(clientId == null) clientId = claims.getStringClaimValue(Constants.CID);
107107
auditInfo.put(Constants.CLIENT_ID_STRING, clientId);
108108
String userId = claims.getStringClaimValue(Constants.USER_ID_STRING);
109109
// try to get the uid as some OAuth tokens name it as uid like Okta.
110-
if(userId == null) userId = claims.getStringClaimValue(Constants.UID_STRING);
110+
if(userId == null) userId = claims.getStringClaimValue(Constants.UID);
111111
auditInfo.put(Constants.USER_ID_STRING, userId);
112112
auditInfo.put(Constants.SUBJECT_CLAIMS, claims);
113113
String callerId = headerMap.getFirst(HttpStringConstants.CALLER_ID);

0 commit comments

Comments
 (0)