Skip to content

Update guard_authentication.rst #13403

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 23, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions security/guard_authentication.rst
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ The Guard Authenticator Methods
Each authenticator needs the following methods:

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

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

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

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