-
Notifications
You must be signed in to change notification settings - Fork 6k
Remove deprecated implementations of OAuth2AccessTokenResponseClient #16909
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi! Could I give this a try?
Edit: If we are deleting all Default* classes, then the previous sentence makes as we want to remove those Deprecated methods. |
Hi @MammosGeorgios. I'm mainly filing this issue now so we have it on the radar in time to begin the cycle on 7.0.x in May or June (whenever we switch over to 7.x development). So this issue isn't quite ready to be worked yet. If you want to check in a few weeks after the GA release of 6.5.0 that would be great! Please note, I've edited the issue to be clearer about the fact that all associated deprecated classes should also be removed. |
Hello @sjohnr. I will check in periodically and keep an eye out for when you start the development of 7.x In the meantime, I will check out if there's something else I could perhaps try. |
Sounds good @MammosGeorgios. You can also check |
How to implements client_secret_jwt and private_key_jwt with those new classes ? Documentation suggest to use DefaultClientCredentialsTokenResponseClient and override the request converter ... |
@gdufrene thanks for pointing that out. I have neglected to update that section of the documentation. I have opened gh-16925 to address this. In the meantime, see Customizing Request Headers and Customizing Request Parameters for the client credentials grant. TL;DR You can use the same methods for customizing directly on |
@sjohnr thanks for your reply and documentation update ! It will help us :) |
Uh oh!
There was an error while loading. Please reload this page.
With the 6.4 release, a new set of
OAuth2AccessTokenResponseClient
implementations were introduced based onRestClient
. These are:RestClientAuthorizationCodeTokenResponseClient
RestClientRefreshTokenTokenResponseClient
RestClientClientCredentialsTokenResponseClient
RestClientJwtBearerTokenResponseClient
RestClientTokenExchangeTokenResponseClient
These implementations are drop-in replacements for the
RestOperations
-based implementations which have been deprecated. These are:DefaultAuthorizationCodeTokenResponseClient
DefaultRefreshTokenTokenResponseClient
DefaultClientCredentialsTokenResponseClient
DefaultPasswordTokenResponseClient
DefaultJwtBearerTokenResponseClient
DefaultTokenExchangeTokenResponseClient
Note that the
DefaultPasswordTokenResponseClient
does not have a replacement, as it is deprecated for removal for separate reasons (it should not be used according to RFC 9700).The following checklist should be used to help validate removal:
Default*
deprecated classes above and replace usages in the framework with theRestClient*
AbstractOAuth2AuthorizationGrantRequestEntityConverter
and all deprecated subclasses and their usagesClientAuthenticationMethodValidatingRequestEntityConverter
should also be removedRestClient
instead ofRestTemplate
Related gh-15298
The text was updated successfully, but these errors were encountered: