spring-oauth2-client-credentials-webclient
spring-oauth2-client-credentials-webclient copied to clipboard
Whe use ServletOAuth2AuthorizedClientExchangeFilterFunction?
trafficstars
Helloworldless,
We used ServerOAuth2AuthorizedClientExchangeFilterFunction and could not get the OAuth refresh token working. So we switched to ServletOAuth2AuthorizedClientExchangeFilterFunction based on your code. I am just wondering why we need to use ServletOAuth2AuthorizedClientExchangeFilterFunction?
The "Server" one is the reactive version. "Servlet" is the traditional, non-reactive one.
For reference:
- Reactive: https://docs.spring.io/spring-security/site/docs/5.4.2/reference/html5/#webclient-setup
- Servlet: https://docs.spring.io/spring-security/site/docs/5.4.2/reference/html5/#oauth2Client-webclient-servlet
Thanks. I did use Reactive setup and somehow ServerOAuth2AuthorizedClientExchangeFilterFunction does not work for us. So we had to switch to Servlet setup.