-
-
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
meaningless author and license changes
- Loading branch information
commit 293c8a1775af3d78fabc10139578de5642bc2ef1
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
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
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
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
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
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
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
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
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.
I propose to move this namespace into
Guard\Authentication
, just as done in Security Core. Or move the class inGuard\Authentication
directly (to avoid long FQCNs). The -AuthenticationProvider prefix already makes it clear it's an authentication provider, no need to duplicate that in the namespaces imo (in my ideal world, it would beGuard\Authentication\Provider\Guard
).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.
Finally updating this PR :). I don't understand what you're proposing here - when you suggest
Guard\Authentication...
- do you actually mean that, or actuallySymfony\Component\Security\Guard\Authentication...
? I'm not convinced I have the classes organized in the most efficient way, and it's an easy change to still make.