Expose default success/error handlers in OAuth2AuthorizationEndpointFilter
Expected Behavior
The default behaviour of the AuthenticationSuccessHandler and AuthenticationFailureHandlers should be acessible, so that they can be extended and/or composed without having to copy-paste them from the current source code.
Current Behavior
In OAuth2AuthorizationEndpointFilter, for example, both handlers are private method references, with no getters defined either.
Context
I wanted to change the error page handler when the redirectUri cannot be used. This was easily possible in the previous implementation.
Related spring-projects/spring-authorization-server#1557
This issue was transferred from spring-projects/spring-authorization-server (see spring-authorization-server#2195)
This enhancement should provide the capability to customize the RedirectStrategy for both the AuthenticationSuccessHandler and AuthenticationFailureHandler (https://github.com/spring-projects/spring-authorization-server/issues/1557 and https://github.com/spring-projects/spring-authorization-server/issues/1232)