AuthenticationWebFilter's ReactiveAuthenticationManagerResolver should take a ServerWebExchange #7872
Labels
in: web
An issue in web modules (web, webmvc)
type: breaks-passivity
A change that breaks passivity with the previous release
type: enhancement
A general enhancement
Milestone
AuthenticationWebFilter
uses the exchange object throughout its implementation. It uses it for itsServerWebExchangeMatcher
,ServerAuthenticationConverter
,ServerSecurityContextRepository
and all its other HTTP-based collaborators.It would be cleaner for
AuthenticationWebFilter
to take aReactiveAuthenticationManagerResolver<ServerWebExchange>
instead of aReactiveAuthenticationManagerResolver<ServerHttpRequest>
to align with the rest of the API.One way to achieve this might be to add an interface like:
And then add a constructor:
The downside here is that we'd have an interface that we would not otherwise have introduced.
Or, since this is a very new feature, it might be best to simply change the constructor parameter generic type to alleviate confusion. That is, change:
to
And then document the change in the 5.3 release notes.
The text was updated successfully, but these errors were encountered: