Skip to content

Commit

Permalink
fix: fix JWT parse bug (#54)
Browse files Browse the repository at this point in the history
* feat:fix parse jwt bug

* feat:fix parse jwt bug

* Update CasdoorAuthService.java

---------

Co-authored-by: hsluoyz <[email protected]>
  • Loading branch information
D1zzzY1 and hsluoyz authored Aug 5, 2023
1 parent 9449f73 commit a19e85b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public CasdoorUser parseJwtToken(String token) {
throw new CasdoorAuthException("Access token not found in JWT payload.");
}

return objectMapper.readValue(claimsSet.toString(), CasdoorUser.class);
return objectMapper.readValue(accessToken, CasdoorUser.class);
} catch (JsonProcessingException | java.text.ParseException e) {
throw new CasdoorAuthException("Cannot read access token from JWT payload.", e);
}
Expand Down

0 comments on commit a19e85b

Please sign in to comment.