8000 Update guard_authentication.rst · symfony/symfony-docs@cda5d3a · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

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

Appearance settings

Commit cda5d3a

Browse files
Update guard_authentication.rst
Removing "This will be called on *every* request" from `getCredentials()`, since it's only called if `supports()` returns `true`.
1 parent b0e2521 commit cda5d3a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

security/guard_authentication.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ The Guard Authenticator Methods
370370
Each authenticator needs the following methods:
371371

372372
**supports(Request $request)**
373-
This will be called on *every* request and your job is to decide if the
373+
This is called on *every* request and your job is to decide if the
374374
authenticator should be used for this request (return ``true``) or if it
375375
should be skipped (return ``false``).
376376

@@ -381,9 +381,8 @@ Each authenticator needs the following methods:
381381
``getCredentials()`` method.
382382

383383
**getCredentials(Request $request)**
384-
This will be called on *every* request and your job is to read the token (or
385-
whatever your "authentication" information is) from the request and return it.
386-
These credentials are later passed as the first argument of ``getUser()``.
384+
Your job is to read the token (or whatever your "authentication" information is)
385+
from the request and return it. These credentials are passed to ``getUser()``.
387386

388387
**getUser($credentials, UserProviderInterface $userProvider)**
389388
The ``$credentials`` argument is the value returned by ``getCredentials()``.

0 commit comments

Comments
 (0)
0