Make oAuth request with load balanced web client #9500
Labels
in: oauth2
An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)
status: duplicate
A duplicate of another issue
Expected Behavior
I want to make some oAuth requests using a loadbalancer. For example, requests to get a token, refresh a token, or request user information. I want to use multiple service instances to make this requests, not just one. For example, I want to use eureka to specify service instance for each token request.
Current Behavior
To make it by hand, I should override beans, that makes this request and set to them custom web client. Example:
But, for example, it is really hard to set custom web client for
AbstractWebClientReactiveOAuth2AccessTokenResponseClient
, which make request to refresh expired token.Context
Because of this problems, it is really hard to make our microservice system scalable. Framework require to use only one specified server, which is really bad.
The text was updated successfully, but these errors were encountered: