8000 Added some references to the authenticator security article · symfony/symfony-docs@b4e45f2 · GitHub
[go: up one dir, main page]

Skip to content

Commit b4e45f2

Browse files
committed
Added some references to the authenticator security article
1 parent 9703488 commit b4e45f2

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

security.rst

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,49 @@ install the security feature before using it:
3737
3838
$ composer require symfony/security-bundle
3939
40+
41+
.. tip::
42+
43+
A :doc:`new experimental Security </security/experimental_authenticators>`
44+
was introduced in Symfony 5.1, which will eventually replace security in
45+
Symfony 6.0. This system is almost fully backwards compatible with the
46+
current Symfony security, add this line to your security configuration to start
47+
using it:
48+
49+
.. configuration-block::
50+
51+
.. code-block:: yaml
52+
53+
# config/packages/security.yaml
54+
security:
55+
enable_authenticator_manager: true
56+
# ...
57+
58+
.. code-block:: xml
59+
60+
<!-- config/packages/security.xml -->
61+
<?xml version="1.0" encoding="UTF-8"?>
62+
<srv:container xmlns="http://symfony.com/schema/dic/security"
63+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
64+
xmlns:srv="http://symfony.com/schema/dic/services"
65+
xsi:schemaLocation="http://symfony.com/schema/dic/services
66+
https://symfony.com/schema/dic/services/services-1.0.xsd
67+
http://symfony.com/schema/dic/security
68+
https://symfony.com/schema/dic/security/security-1.0.xsd">
69+
70+
<config enable-authenticator-manager="true">
71+
<!-- ... -->
72+
</config>
73+
</srv:container>
74+
75+
.. code-block:: php
76+
77+
// config/packages/security.php
78+
$container->loadFromExtension('security', [
79+
'enable_authenticator_manager' => true,
80+
// ...
81+
]);
82+
4083
.. _initial-security-yml-setup-authentication:
4184
.. _initial-security-yaml-setup-authentication:
4285
.. _create-user-class:

security/guard_authentication.rst

Lines changed: 5 additions & 0 deletions
< 3BB5 td data-grid-cell-id="diff-328472ac97712ee97bcf980fc3275d04e89616234c33ef319e9977e7898f6572-19-24-2" data-line-anchor="diff-328472ac97712ee97bcf980fc3275d04e89616234c33ef319e9977e7898f6572R24" data-selected="false" role="gridcell" style="background-color:var(--bgColor-default);padding-right:24px" tabindex="-1" valign="top" class="focusable-grid-cell diff-text-cell right-side-diff-cell left-side">

Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ Guard authentication can be used to:
1414
and many more. In this example, we'll build an API token authentication
1515
system, so we can learn more about Guard in detail.
1616

17+
.. tip::
18+
19+
A :doc:`new experimental authenticator-based system </security/experimental_authenticators>`
20+
was introduced in Symfony 5.1, which will eventually replace Guards in Symfony 6.0.
21+
1722
Step 1) Prepare your User Class
1823
-------------------------------
1924

0 commit comments

Comments
 (0)
0