Skip to content

Commit

Permalink
Downgrade JJWT library version
Browse files Browse the repository at this point in the history
  • Loading branch information
vladokrsymphony committed Feb 28, 2024
1 parent 9b9e2ff commit c7ec7c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion symphony-bdk-bom/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ dependencies {
api 'org.apache.commons:commons-text:1.11.0'
api 'commons-logging:commons-logging:1.3.0'
api 'com.brsanthu:migbase64:2.2'
api 'io.jsonwebtoken:jjwt:0.12.3'
api 'io.jsonwebtoken:jjwt:0.9.1'
api 'org.bouncycastle:bcpkix-jdk18on:1.77'
api 'com.google.code.findbugs:jsr305:3.0.2'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ public static UserClaim validateJwt(String jwt, String certificate) throws AuthI
final Certificate x509Certificate = parseX509Certificate(certificate);

try {
final Claims body = Jwts.parser().verifyWith(x509Certificate.getPublicKey())
.build().parseSignedClaims(jwt).getPayload();
final Claims body = Jwts.parser().setSigningKey(x509Certificate.getPublicKey())
.parseClaimsJws(jwt).getBody();
return mapper.convertValue(body.get("user"), UserClaim.class);
} catch (JwtException e) {
throw new AuthInitializationException("Unable to validate JWT", e);
Expand Down

0 comments on commit c7ec7c0

Please sign in to comment.