-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Remove use of deprecated ClientAuthenticationMethod's #350
Conversation
@bibibiu2017 Please sign the Contributor License Agreement! Click here to manually synchronize the status of this Pull Request. See the FAQ for frequently asked questions. |
@bibibiu2017 Thank you for signing the Contributor License Agreement! |
Hi @bibibiu2017, thanks for your interest in the project! Unfortunately, this change has broken quite a lot of tests. Any chance you can take a look at those? Looking at the tests may highlight whether this alone is the correct change to make or not. I'm still catching up on the issue myself. Also, please refer to contributing guidelines when submitting pull requests. In particular, you will want to update the header of files updated with the year "2021" in the copyright, squash your commits, and include "Fixes gh-346" on a separate line in your commit comment. |
I have taken a look at the tests, the configured test registered clients, and some assertions are using the deprecated POST and BASIC Client authentication methods. |
Thanks for looking at the tests, @bibibiu2017! I've tested on your branch, and while the immediate issue is resolved with this change, the sample project no longer works. This is because we've flipped the problem so now the deprecated client authentication methods are not allowed. This is a difficult issue to solve for without too many changes, due to the fact that the Of the available options, I think we can either:
Both options could have an impact. Would you be able to attempt option 2? One approach could be limiting changes to |
ff63483
to
b143215
Compare
I have attempted option 2. Though I could not localize impact to the recommended test files due to assertions that check equality with deprecated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bibibiu2017, sorry I should have been more clear, I meant "limiting additional changes outside of tests" and I think you have done that! I was just thinking of a slightly different approach than yours, but they work out to the same thing. So this seems like a great option!
See inline feedback below. Just a note I'm not going to merge this right away, as I'd like to have a discussion with our community maintainer first, but if we can get it ready for merge, then we'll be in really good shape.
...n/java/org/springframework/security/oauth2/server/authorization/client/RegisteredClient.java
Outdated
Show resolved
Hide resolved
...n/java/org/springframework/security/oauth2/server/authorization/client/RegisteredClient.java
Outdated
Show resolved
Hide resolved
...a/org/springframework/security/oauth2/server/authorization/client/RegisteredClientTests.java
Show resolved
Hide resolved
...a/org/springframework/security/oauth2/server/authorization/client/RegisteredClientTests.java
Show resolved
Hide resolved
Also, I forgot to mention, make sure your commit message contains on a separate line: "Closes gh-346" |
@sjohnr thanks for the feedback will be working on this shortly. |
01e58d8
to
dadbf48
Compare
…espectively when a client is registered. Closes spring-projectsgh-346
Thanks for all the updates @bibibiu2017 ! This is now in main. I also added a polish commit that ensures all usages of |
Fixes gh-346