Closed
Description
Related #7330
I'd like to propose the following changes before this goes RC1:
ServletBearerExchangeFilterFunction
- Move from package
org.springframework.security.oauth2.server.resource.web
toorg.springframework.security.oauth2.server.resource.web.reactive.function.client
- this aligns with packaging forServletOAuth2AuthorizedClientExchangeFilterFunction
andExchangeFilterFunction
- Make class
final
- Make
defaultRequest()
private
- I'm wondering if we need to expose
authentication(Authentication authentication)
- isn't it sufficient just to look up inThreadLocal
? What is the use case where this would be set other than what's in theThreadLocal
? - I think if
getOAuth2Token()
returnsnull
the filter will fail? It doesn't seem like we have a test for this?
ServerBearerExchangeFilterFunction
- Apply the same (applicable) changes as
ServletBearerExchangeFilterFunction