Skip to content

Commit f3a1355

Browse files
committed
feature #5265 Documentation for the new Guard authentication style (weaverryan)
This PR was merged into the 2.8 branch. Discussion ---------- Documentation for the new Guard authentication style | Q | A | ------------- | --- | Doc fix? | no | New docs? | yes symfony/symfony#14673 | Applies to | 2.8+ | Fixed tickets | n/a Hi guys! This is a WIP documentation for a proposed new authentication system. I've written just enough so people can understand how to use it, but will finish it later once the code has gotten reviewed. Thanks! Commits ------- 51720c7 Many fixes thanks to great review from ogizanagi, javiereguiluz and others 4752d4c adding one clarifying message 9782ff1 adding toc entries 62dcae3 Using JsonResponse + cleanup 440fe6f revamping Guard article bfce91b Fixing minor comments 9e411fe I'm extending the abstract class - so mention that. Also adding anonymous ac107c7 WIP documentation for the new guard auth
2 parents 5330c43 + 51720c7 commit f3a1355

File tree

6 files changed

+592
-0
lines changed

6 files changed

+592
-0
lines changed

cookbook/map.rst.inc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@
162162

163163
* :doc:`/cookbook/security/form_login_setup`
164164
* :doc:`/cookbook/security/entity_provider`
165+
* :doc:`/cookbook/security/guard-authentication`
165166
* :doc:`/cookbook/security/remember_me`
166167
* :doc:`/cookbook/security/impersonating_user`
167168
* :doc:`/cookbook/security/form_login`

cookbook/security/api_key_authentication.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
How to Authenticate Users with API Keys
55
=======================================
66

7+
.. tip::
8+
9+
Check out :doc:`/cookbook/security/guard-authentication` for a simpler and more
10+
flexible way to accomplish custom authentication tasks like this.
11+
712
Nowadays, it's quite usual to authenticate the user via an API key (when developing
813
a web service for instance). The API key is provided for every request and is
914
passed as a query string parameter or via an HTTP header.

cookbook/security/custom_authentication_provider.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ How to Create a custom Authentication Provider
1010
you through that process. But depending on your needs, you may be able
1111
to solve your problem in a simpler, or via a community bundle:
1212

13+
* :doc:`/cookbook/security/guard-authentication`
1314
* :doc:`/cookbook/security/custom_password_authenticator`
1415
* :doc:`/cookbook/security/api_key_authentication`
1516
* To authenticate via OAuth using a third-party service such as Google, Facebook

cookbook/security/custom_password_authenticator.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
How to Create a Custom Form Password Authenticator
55
==================================================
66

7+
.. tip::
8+
9+
Check out :doc:`/cookbook/security/guard-authentication` for a simpler and more
10+
flexible way to accomplish custom authentication tasks like this.
11+
712
Imagine you want to allow access to your website only between 2pm and 4pm
813
UTC. Before Symfony 2.4, you had to create a custom token, factory, listener
914
and provider. In this entry, you'll learn how to do this for a login form

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy