diff --git a/pom.xml b/pom.xml index 2cde776e0..d1c2dc75f 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ com.scireum sirius-parent - 12.1.0 + 12.1.1 sirius-web DEVELOPMENT-SNAPSHOT diff --git a/src/main/java/sirius/web/security/oauth/ReceivedTokens.java b/src/main/java/sirius/web/security/oauth/ReceivedTokens.java index 2e324f03e..94d81c785 100644 --- a/src/main/java/sirius/web/security/oauth/ReceivedTokens.java +++ b/src/main/java/sirius/web/security/oauth/ReceivedTokens.java @@ -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