|
|
|
@ -173,8 +173,8 @@ public final class OAuth2AuthorizationEndpointFilter extends OncePerRequestFilte |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|
Authentication authentication = this.authenticationConverter.convert(request); |
|
|
|
Authentication authentication = this.authenticationConverter.convert(request); |
|
|
|
if (authentication instanceof AbstractAuthenticationToken) { |
|
|
|
if (authentication instanceof AbstractAuthenticationToken abstractAuthenticationToken) { |
|
|
|
((AbstractAuthenticationToken) authentication) |
|
|
|
abstractAuthenticationToken |
|
|
|
.setDetails(this.authenticationDetailsSource.buildDetails(request)); |
|
|
|
.setDetails(this.authenticationDetailsSource.buildDetails(request)); |
|
|
|
} |
|
|
|
} |
|
|
|
Authentication authenticationResult = this.authenticationManager.authenticate(authentication); |
|
|
|
Authentication authenticationResult = this.authenticationManager.authenticate(authentication); |
|
|
|
@ -188,13 +188,13 @@ public final class OAuth2AuthorizationEndpointFilter extends OncePerRequestFilte |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (authenticationResult instanceof OAuth2AuthorizationConsentAuthenticationToken) { |
|
|
|
if (authenticationResult instanceof OAuth2AuthorizationConsentAuthenticationToken oAuth2AuthorizationConsentAuthenticationToken) { |
|
|
|
if (this.logger.isTraceEnabled()) { |
|
|
|
if (this.logger.isTraceEnabled()) { |
|
|
|
this.logger.trace("Authorization consent is required"); |
|
|
|
this.logger.trace("Authorization consent is required"); |
|
|
|
} |
|
|
|
} |
|
|
|
sendAuthorizationConsent(request, response, |
|
|
|
sendAuthorizationConsent(request, response, |
|
|
|
(OAuth2AuthorizationCodeRequestAuthenticationToken) authentication, |
|
|
|
(OAuth2AuthorizationCodeRequestAuthenticationToken) authentication, |
|
|
|
(OAuth2AuthorizationConsentAuthenticationToken) authenticationResult); |
|
|
|
oAuth2AuthorizationConsentAuthenticationToken); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|