-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
New Guard Authentication System (e.g. putting the joy back into security) #14673
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
330aa7f
Improving phpdoc on AuthenticationEntryPointInterface so people that …
weaverryan 05af97c
Initial commit (but after some polished work) of the new Guard authen…
weaverryan a0bceb4
adding Guard tests
weaverryan 873ed28
Renaming the tokens to be clear they are "post" and "pre" auth - also…
weaverryan 180e2c7
Properly handles "post auth" tokens that have become not authenticated
weaverryan 6c180c7
Adding an edge case - this should not happen anyways
weaverryan c73c32e
Thanks fabbot!
weaverryan eb158cb
Updating interface method per suggestion - makes sense to me, Request…
weaverryan d693721
Adding periods at the end of exceptions, and changing one class name …
weaverryan 6edb9e1
Tweaking docblock on interface thanks to @iltar
weaverryan ffdbc66
Splitting the getting of the user and checking credentials into two s…
weaverryan 7de05be
A few more changes thanks to @iltar
weaverryan 7a94994
Thanks again fabbot!
weaverryan 81432f9
Adding missing factory registration
weaverryan 293c8a1
meaningless author and license changes
weaverryan 0501761
Allowing for other authenticators to be checked
weaverryan 31f9cae
Adding a base class to assist with form login authentication
weaverryan c9d9430
Adding logging on this step and switching the order - not for any hu…
weaverryan 396a162
Tweaks thanks to Wouter
weaverryan 302235e
Fixing a bug where having an authentication failure would log you out.
weaverryan dd485f4
Adding a new exception and throwing it when the User changes
weaverryan e353833
fabbot
weaverryan d763134
Removing unnecessary override
weaverryan a01ed35
Adding the necessary files so that Guard can be its own installable c…
weaverryan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
A few more changes thanks to @iltar
- Loading branch information
commit 7de05be3f6396e8893c7204f1dfdbec905063dfa
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Is there anything preventing you from using a
NullLogger
instance if not provided ? In order to avoid such things: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.
Nothing technical preventing that, but
NullLogger
isn't used anywhere in core currently - having an optional argument like this is used :)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.
What I think he means is the following:
IMO this is a cleaner solution as you don't have to worry about
if($this->logger)
statements. You can just log away safely.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.
See #14682
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.
agree with @iltar it does simplify a little bit IMO
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.
👎 for a NullLogger, Symfony should take options for most performance.