[KEYCLOAK-11765] Changed to jdk7 compliant code
This commit is contained in:
parent
6c83b36360
commit
68fa37b4cd
1 changed files with 1 additions and 1 deletions
|
@ -336,7 +336,7 @@ public class OAuthRequestAuthenticator {
|
|||
} catch (ServerRequest.HttpFailure failure) {
|
||||
log.error("failed to turn code into token");
|
||||
log.error("status from server: " + failure.getStatus());
|
||||
if (failure.getError() != null && !failure.getError().isBlank()) {
|
||||
if (failure.getError() != null && !failure.getError().trim().isEmpty()) {
|
||||
log.error(" " + failure.getError());
|
||||
}
|
||||
return challenge(403, OIDCAuthenticationError.Reason.CODE_TO_TOKEN_FAILURE, null);
|
||||
|
|
Loading…
Reference in a new issue