Skip to content

Commit 0d9925c

Browse files
committed
[#2914][WIP] Additions to the new authentication articles
The biggest difference is the extension of the API article to give more details about the user provider and to talk about how you might store authentication information in the session.
1 parent afdb708 commit 0d9925c

File tree

4 files changed

+447
-63
lines changed

4 files changed

+447
-63
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`` on
2+
your class (and any other authentication listeners) to figure out who should
3+
handle it. This is just a way to allow several authentication mechanisms to
4+
be used for the same firewall (that way, you can for instance first try to
5+
authenticate the user via a certificate or an API key and fall back to a
6+
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)