Skip to content

Commit 7867615

Browse files
committed
Merge pull request symfony#3357 from symfony/security-2914-additions
New Security Authentication Additions
2 parents ddaf1a2 + 6da1df6 commit 7867615

File tree

4 files changed

+451
-62
lines changed

4 files changed

+451
-62
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
After Symfony calls ``createToken()``, it will then call ``supportsToken()``
2+
on your class (and any other authentication listeners) to figure out who should
3+
handle the token. This is just a way to allow several authentication mechanisms
4+
to be used for the same firewall (that way, you can for instance first try
5+
to authenticate the user via a certificate or an API key and fall back to
6+
a form login).
7+
8+
Mostly, you just need to make sure that this method returns ``true`` for a
9+
token that has been created by ``createToken()``. Your logic should probably
10+
look exactly like this example.

0 commit comments

Comments
 (0)