Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit110e22b

Browse files
committed
[symfony#2914][WIP] Additions to the new authentication articles
The biggest difference is the extension of the API article to give moredetails about the user provider and to talk about how you might storeauthentication information in the session.
1 parentafdb708 commit110e22b

File tree

4 files changed

+446
-62
lines changed

4 files changed

+446
-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 willthen call ``supportsToken`` on
2+
yourclass (and any other authentication listeners)to figure out who should
3+
handle it. Thisis just a wayto allow several authentication mechanismsto
4+
be usedfor the same firewall (that way, you canfor instance firsttryto
5+
authenticate the user via a certificateor an API keyand fall backto a
6+
form login).
7+
8+
Mostly, you just needto 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)

[8]ページ先頭

©2009-2025 Movatter.jp