-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Closed
Labels
in: oauth2An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)type: enhancementA general enhancementA general enhancement
Milestone
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
Metadata
Metadata
Assignees
Labels
in: oauth2An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)type: enhancementA general enhancementA general enhancement