Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
457 additions
and
65 deletions.
There are no files selected for viewing
This file contains 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 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
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 the token. This is just a way to allow several authentication mechanisms | ||
to 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 | ||
look exactly like this example. |
Oops, something went wrong.