Update OAuthRequestAuthenticator.java (#4427)
Removed a check for a 400 error, I was seeing a 403 error, and it wasn't until I rewrote the code to be like what is in line 334 I did not see enough meaningful information to figure out I had a /etc/hosts issue, where I had it locally on my machine, but the remote tomcat instance needed it also.
This commit is contained in:
parent
cea88bd67f
commit
9673ce5541
1 changed files with 1 additions and 1 deletions
|
@ -331,7 +331,7 @@ public class OAuthRequestAuthenticator {
|
||||||
} catch (ServerRequest.HttpFailure failure) {
|
} catch (ServerRequest.HttpFailure failure) {
|
||||||
log.error("failed to turn code into token");
|
log.error("failed to turn code into token");
|
||||||
log.error("status from server: " + failure.getStatus());
|
log.error("status from server: " + failure.getStatus());
|
||||||
if (failure.getStatus() == 400 && failure.getError() != null) {
|
if (failure.getError() != null) {
|
||||||
log.error(" " + failure.getError());
|
log.error(" " + failure.getError());
|
||||||
}
|
}
|
||||||
return challenge(403, OIDCAuthenticationError.Reason.CODE_TO_TOKEN_FAILURE, null);
|
return challenge(403, OIDCAuthenticationError.Reason.CODE_TO_TOKEN_FAILURE, null);
|
||||||
|
|
Loading…
Reference in a new issue