-
Notifications
You must be signed in to change notification settings - Fork 6k
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
UsernamePasswordAuthenticationToken factory methods #10901
Conversation
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.
Thanks, @nor-ek! I've left some feedback inline.
When you are ready, please also squash your commits so that there is just one commit in the PR.
...in/java/org/springframework/security/authentication/UsernamePasswordAuthenticationToken.java
Outdated
Show resolved
Hide resolved
...in/java/org/springframework/security/authentication/UsernamePasswordAuthenticationToken.java
Show resolved
Hide resolved
...in/java/org/springframework/security/authentication/UsernamePasswordAuthenticationToken.java
Show resolved
Hide resolved
bee556e
to
962d5ed
Compare
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.
Thanks, @nor-ek! I've left some feedback inline.
It appears that some other commits got mixed in with your commit. I've made comments on the files that I noticed, but I'm not sure that I've caught them all. You might try rebasing with 5.7.x
to remove them.
...ingframework/security/config/annotation/web/reactive/ReactiveOAuth2ClientImportSelector.java
Outdated
Show resolved
Hide resolved
...ramework/security/config/annotation/web/reactive/ReactiveOAuth2ClientImportSelectorTest.java
Outdated
Show resolved
Hide resolved
...in/java/org/springframework/security/authentication/UsernamePasswordAuthenticationToken.java
Outdated
Show resolved
Hide resolved
...in/java/org/springframework/security/authentication/UsernamePasswordAuthenticationToken.java
Outdated
Show resolved
Hide resolved
docs/modules/ROOT/pages/features/integrations/cryptography.adoc
Outdated
Show resolved
Hide resolved
...g/springframework/security/saml2/provider/service/registration/RelyingPartyRegistration.java
Outdated
Show resolved
Hide resolved
web/src/main/java/org/springframework/security/web/DefaultSecurityFilterChain.java
Outdated
Show resolved
Hide resolved
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.
Thanks for the updates, @nor-ek! Will you please do one more maintenance for me?
Please change the copyright year for any files whose copyright looks like:
Copyright 2002-{year} the original author or authors
to 2022.
Additionally, I haven't seen #10901 (comment) addressed yet. Let me know if it's unclear. Basically, the class should look like this:
/**
* ... java doc ...
*
* @author Ben Alex
* @author Norbert Nowak
**/
public class UsernamePasswordAuthenticationToken extends AbstractAuthenticationToken {
// ...
/**
* ... java doc ...
*
* @since 5.7
**/
public static UsernamePasswordAuthenticationToken unauthenticated(...) {
...
}
}
Your @author
tag goes at the class level. Your @since
tags go on your new public methods.
@jzheaux Yes, no problem. Should I only change 2002-{current} or also other years f.g 2006-{current}, 2009-{current}. I'm going to do this in separate commit ok? Author tag should be corrected. |
Hi, @nor-ek. Thanks for all the updating. Sorry, what I meant was, please change the copyright headers for the files that you modified in the PR. You can read more about it in the contributing guidelines. Since they are only the files related to this PR, I think it's best to include them in the same commit as it makes forward-porting to |
Hi @jzheaux I understand now. Sorry, I thought that its separate task. Going to correct that ASAP. |
…d and unauthenticated methods - unauthenticated factory method - authenticated factory method - test for unauthenticated factory method - test for authenticated factory method - make existing constructor protected - use newly factory methods in rest of the project - update copyright dates Issue spring-projectsgh-10799
@nor-ek, the copyrights originally assigned to Acegi we leave for now, thanks for asking. |
This PR does the following:
Let me know if commit messages, test names, or something else can be wrong.