Open hky0715 opened 3 weeks ago
...
private AuthorizationRequestRepository<OAuth2AuthorizationRequest> authorizationRequestRepository = new HttpSessionOAuth2AuthorizationRequestRepository();
...
@Override
public Authentication attemptAuthentication(HttpServletRequest request, HttpServletResponse response)
...
OAuth2AuthorizationRequest authorizationRequest = this.authorizationRequestRepository.removeAuthorizationRequest(request, response);
if (authorizationRequest == null) {
OAuth2Error oauth2Error = new OAuth2Error(AUTHORIZATION_REQUEST_NOT_FOUND_ERROR_CODE);
throw new OAuth2AuthenticationException(oauth2Error, oauth2Error.toString());
}
...
}
with Single Pod - Success
with Double Pod and sessionAffinity - fail
sessionAffinity: ClientIP
sessionAffinityConfig:
clientIP:
timeoutSeconds: 10800
with Double Pod and ALB Session Affinity - Success
with Double Pod and Spring Session Redis