Skip to content

Commit

Permalink
Merge pull request #1411 from scireum/feature/sbi/jackson
Browse files Browse the repository at this point in the history
Revert "Replace call to deprecated Jackson method"
  • Loading branch information
sabieber authored Apr 24, 2024
2 parents 4f37c3f + 0e3656d commit 71dc9e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.scireum</groupId>
<artifactId>sirius-parent</artifactId>
<version>12.1.0</version>
<version>12.1.1</version>
</parent>
<artifactId>sirius-web</artifactId>
<version>DEVELOPMENT-SNAPSHOT</version>
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/sirius/web/security/oauth/ReceivedTokens.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ public record ReceivedTokens(String accessToken, String refreshToken, String typ
* @return the tokens received from the authorization server
*/
public static ReceivedTokens fromJson(ObjectNode response) {
String accessToken = response.required(OAuth.ACCESS_TOKEN).asText();
String refreshToken = response.required(OAuth.REFRESH_TOKEN).asText();
String type = response.required(OAuth.TOKEN_TYPE).asText();
String accessToken = response.required(OAuth.ACCESS_TOKEN).asText("");
String refreshToken = response.required(OAuth.REFRESH_TOKEN).asText("");
String type = response.required(OAuth.TOKEN_TYPE).asText("");
if (OAuth.TOKEN_TYPE_BEARER.equalsIgnoreCase(type)) {
try {
// Try to read the exact refresh token expiration date from the JWT token itself
Expand Down

0 comments on commit 71dc9e3

Please sign in to comment.