Skip to content

Documentation for the new Guard authentication style #5265

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 8 commits into from
Nov 27, 2015
Prev Previous commit
Next Next commit
adding one clarifying message
  • Loading branch information
weaverryan committed Nov 23, 2015
commit 4752d4c41eca8bd5887b902df44dd17abfb9a745
4 changes: 4 additions & 0 deletions cookbook/security/guard-authentication.rst
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,10 @@ That's it! Need more information about this step, see:
Step 1) Create the Authenticator Class
--------------------------------------

Suppose you have an API where your clients will send an ``X-AUTH-TOKEN`` header
on each request with their API token. Your job is to read this and find the associated
user (if any).

To create a custom authentication system, just create a class an make it implement
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

- To create a custom authentication system, just create a class an make it implement
+ To create a custom authentication system, just create a class and make it implement

:class:`Symfony\\Component\\Security\\Guard\\GuardAuthenticatorInterface`. Or, extend
the simpler :class:`Symfony\\Component\\Security\\Guard\\AbstractGuardAuthenticator`.
Expand Down