OAuth2AuthorizedClientArgumentResolver should refresh access token when expired and authorization_code #6610
Labels
in: oauth2
An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)
status: invalid
An issue that we don't feel is valid
If the
OAuth2AuthorizedClient.accessToken
is expired for aauthorization_code
OAuth2AuthorizedClient.clientRegistration
andOAuth2AuthorizedClient.refreshToken
is available than theOAuth2AuthorizedClientArgumentResolver
should handle refreshing the access token.This functionality already exists in
ServletOAuth2AuthorizedClientExchangeFilterFunction.authorizeWithRefreshToken()
(Servlet) andServerOAuth2AuthorizedClientExchangeFilterFunction.authorizeWithRefreshToken()
(Reactive).NOTE: This functionality needs to be implemented in both the Servlet and Reactive
OAuth2AuthorizedClientArgumentResolver
.The text was updated successfully, but these errors were encountered: