ServletOAuth2AuthorizedClientExchangeFilterFunction Does Not Work For Chained Reactive Methods #6483
Labels
in: oauth2
An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)
in: web
An issue in web modules (web, webmvc)
type: bug
A general bug
Milestone
Summary
The defaults for ServletOAuth2AuthorizedClientExchangeFilterFunction are performed on the main thread so that ThreadLocal's like SecurityContextHolder and RequestContextHolder can be accessed. The problem is that when chaining occurs, the thread has also chained. This means these defaults cannot be accessed.
An example would be something like this:
We should find a way to ensure that the defaults are propagated to chained methods (likely using Reactor's context)
The text was updated successfully, but these errors were encountered: