Skip to content

Commit

Permalink
revamping Guard article
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverryan committed Nov 22, 2015
1 parent bfce91b commit 440fe6f
Show file tree
Hide file tree
Showing 5 changed files with 580 additions and 493 deletions.
5 changes: 5 additions & 0 deletions cookbook/security/api_key_authentication.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
How to Authenticate Users with API Keys
=======================================

.. tip::

Check out :doc:`/cookbook/security/guard-authentication` for a simpler and more
flexible way to accomplish custom authentication tasks like this.

Nowadays, it's quite usual to authenticate the user via an API key (when developing
a web service for instance). The API key is provided for every request and is
passed as a query string parameter or via an HTTP header.
Expand Down
1 change: 1 addition & 0 deletions cookbook/security/custom_authentication_provider.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ How to Create a custom Authentication Provider
you through that process. But depending on your needs, you may be able
to solve your problem in a simpler, or via a community bundle:

* :doc:`/cookbook/security/guard-authentication`
* :doc:`/cookbook/security/custom_password_authenticator`
* :doc:`/cookbook/security/api_key_authentication`
* To authenticate via OAuth using a third-party service such as Google, Facebook
Expand Down
5 changes: 5 additions & 0 deletions cookbook/security/custom_password_authenticator.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
How to Create a Custom Form Password Authenticator
==================================================

.. tip::

Check out :doc:`/cookbook/security/guard-authentication` for a simpler and more
flexible way to accomplish custom authentication tasks like this.

Imagine you want to allow access to your website only between 2pm and 4pm
UTC. Before Symfony 2.4, you had to create a custom token, factory, listener
and provider. In this entry, you'll learn how to do this for a login form
Expand Down
Loading

0 comments on commit 440fe6f

Please sign in to comment.