File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
graphql-security/src/main/java/com/networknt/graphql/security Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments