Add RestOperations implementation of OAuth2AccessTokenResponseClient #5547
Labels
in: oauth2
An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)
type: enhancement
A general enhancement
Milestone
The current (and default) implementation of
OAuth2AccessTokenResponseClient
for theauthorization_code
grant isNimbusAuthorizationCodeTokenResponseClient
, which leverages the Nimbus HTTP Client internally.We should provide a new implementation of
OAuth2AccessTokenResponseClient
for theauthorization_code
grant namedDefaultAuthorizationCodeTokenResponseClient
that usesRestOperations
for requesting to the Token Endpoint.Additionally,
DefaultAuthorizationCodeTokenResponseClient
should exposesetRestOperations(restOperations)
method to allow user's the ability to supply a pre-configuredRestOperations
, which can provide the user the capability to add custom parameters and/or headers if required.DefaultAuthorizationCodeTokenResponseClient
should be the new default inOAuth2LoginConfigurer
andOAuth2ClientConfigurer
.Related #5601
The text was updated successfully, but these errors were encountered: