Skip to content

Commit

Permalink
upgrade enforcer dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
CrowleyRajapakse committed Oct 14, 2024
1 parent 55754a1 commit da2c4e8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -344,11 +344,13 @@ private APIKeyValidationInfoDTO getAPIKeyValidationDTO(RequestContext requestCon
throws ParseException, APISecurityException {

APIKeyValidationInfoDTO validationInfoDTO = new APIKeyValidationInfoDTO();
JSONObject app = payload.getJSONObjectClaim(APIConstants.JwtTokenConstants.APPLICATION);
Map<String, Object> appClaim = payload.getJSONObjectClaim(APIConstants.JwtTokenConstants.APPLICATION);
JSONObject app;
JSONObject api = null;
validationInfoDTO.setType(requestContext.getMatchedAPI().getEnvType());

if (app != null) {
if (appClaim != null) {
app = new JSONObject(appClaim);
validationInfoDTO.setApplicationUUID(app.getAsString(APIConstants.JwtTokenConstants.APPLICATION_UUID));
validationInfoDTO.setApplicationName(app.getAsString(APIConstants.JwtTokenConstants.APPLICATION_NAME));
//validationInfoDTO.setSubscriber(app.getAsString(APIConstants.JwtTokenConstants.APPLICATION_OWNER));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ public boolean isJwtTokenExpired(JWTClaimsSet payload, String keyType, String or
DefaultJWTClaimsVerifier jwtClaimsSetVerifier = new DefaultJWTClaimsVerifier();
jwtClaimsSetVerifier.setMaxClockSkew((int) FilterUtils.getTimeStampSkewInSeconds());
try {
jwtClaimsSetVerifier.verify(payload);
jwtClaimsSetVerifier.verify(payload,null);
} catch (BadJWTException e) {
if ("Expired JWT".equals(e.getMessage())) {
log.debug("{} API key is expired.", keyType);
Expand Down
10 changes: 5 additions & 5 deletions libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ httpcomponents = "4.5.14"
io-github-openfeign = "11.0"
io-swagger = "1.6.9"
io-swagger-v3 = "2.2.9"
jackson = "2.14.2"
jackson = "2.18.0"
javax-cache = "1.1.1"
javax-validation = "2.0.1.Final"
javax-validation-api = "1.1.0.Final"
Expand All @@ -159,10 +159,10 @@ log4j = "2.19.0"
mapstruct = "1.5.3.Final"
minidev = "2.4.9"
moandjiezana = "0.7.2"
netty = "4.1.100.Final"
nimbus = "7.9.0.wso2v1"
okhttp = "4.9.3.wso2v1"
okio = "2.8.0.wso2v1"
netty = "4.1.114.Final"
nimbus = "9.31.wso2v1"
okhttp = "4.9.3.wso2v3"
okio = "3.9.0.wso2v1"
opentelemetry = "1.24.0"
opentelemetry-jaeger-thrift = "1.24.0"
opentelemetry-semconv = "1.24.0-alpha"
Expand Down

0 comments on commit da2c4e8

Please sign in to comment.