-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
Clarify Username/Password Authentication Docs #15806
Conversation
@nimakarimiank Please sign the Contributor License Agreement! Click here to manually synchronize the status of this Pull Request. See the FAQ for frequently asked questions. |
@nimakarimiank Thank you for signing the Contributor License Agreement! |
Thanks, @nimakarimiank! Will you please update the PR so each commit atomically describes what is being changed? For example instead of
and
etc. Please also squash the two commits that are for the same line in the documentation. |
hey @jzheaux, |
Thanks for the updates, @nimakarimiank. Will you please take a look at the commits again? Now there are 7, and we want to have 3. It may help for you to rebase with main. |
@jzheaux This should fix the commit clarity issue
2- Fix SecurityContextPersistenceRepository Typo
Does it look good to you ? |
Thanks, @nimakarimiank! I went ahead and made the final adjustment to rebase with Spring Security's In the future, I recommend creating a branch and pushing from there instead:
Then your PR is from This is now merged into |
FormLogin docs change
UsernamePasswordAuthenticationFilter
Definition raises confusionas written in the docs : "When the username and password are submitted, the
UsernamePasswordAuthenticationFilter
authenticates the username and password.", It states thatUsernamePasswordAuthenticationFilter
is responsible for Authenticating users and populating theSecurityContext
. instead as stated later we read : "UsernamePasswordAuthenticationFilter
creates aUsernamePasswordAuthenticationToken
, which is a type of Authentication, by extracting the username and password from the HttpServletRequest instance."I think we should change the docs so it wouldn't raise any confusions.
Wrong Class reference
SecurityContextPersistenceRepository
is not a recognized class, it's a typo forSecurityContextRepository