-
Notifications
You must be signed in to change notification settings - Fork 6k
Support For ReactiveAnonymousAuthentication In Reactive Web Security #5934
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for the suggestion. Would you be interested in providing a PR for this? |
Sure I will work on PR but I need some clues from you before that:
But In FluxBasedSecurity we don't have equivalent of AbstractAuthenticationFilter. We have one |
I think it just becomes a new WebFilter that is placed after AuthenticationWebFilter and populates AnonymousAuthenticationToken if the Authentication is empty. There is no need to force it into using a |
AnonymousAuthenticationFilter can be implemented as normal Filter extending WebFilter. protected void successfulAuthentication(HttpServletRequest request, HttpServletResponse response, FilterChain chain, Authentication authResult) throws IOException, ServletException {
|
I'd like to stick with one thing at a time. Let's focus this issue on anonymous support. |
@ankurpathak I responded there. |
1. Created new WebFilter AnonymousAuthenticationWebFilter to for anonymous authentication 2. Created class AnonymousSpec, method anonymous to configure anonymous authentication in ServerHttpSecurity 3. Added ANONYMOUS_AUTHENTICATION order after AUTHENTICATION for anonymous authentication in SecurityWebFiltersOrder 4. Added tests for anonymous authentication in AnonymousAuthenticationWebFilterTests and ServerHttpSecurityTests 5. Added support for Controller in WebTestClientBuilder Fixes: spring-projectsgh-5934
I coudn't find the support for Reactive Anonymous Authentication In Reactice Web Security.
We should add support for Reactive Annonymous Authentication and Reactive Remember
Me Authentication. This will make the security for Servlet Stack and Netty Stack similar.
The text was updated successfully, but these errors were encountered: