-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
New Security Authentication Additions #3357
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
After Symfony calls ``createToken``, it will then call ``supportsToken`` on | ||
your class (and any other authentication listeners) to figure out who should | ||
handle it. This is just a way to allow several authentication mechanisms to | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. handle the token |
||
be used for the same firewall (that way, you can for instance first try to | ||
authenticate the user via a certificate or an API key and fall back to a | ||
form login). | ||
|
||
Mostly, you just need to make sure that this method returns ``true`` for a | ||
token that has been created by ``createToken``. Your logic should probably | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
look exactly like this example. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. missing newline at the end of the file |
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.
createToken()
,supportsToken()