8000 [Security] Added docs about the authenticator-based Security system by wouterj · Pull Request #13704 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

[Security] Added docs about the authenticator-based Security system #13704

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
Jun 4, 2020
Merged
Show file tree
Hide file tree
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
44 changes: 44 additions & 0 deletions security.rst
8000
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,49 @@ install the security feature before using it:

$ composer require symfony/security-bundle


.. tip::

A :doc:`new experimental Security </security/experimental_authenticators>`
was introduced in Symfony 5.1, which will eventually replace security in
Symfony 6.0. This system is almost fully backwards compatible with the
current Symfony security, add this line to your security configuration to start
using it:

.. configuration-block::

.. code-block:: yaml

# config/packages/security.yaml
security:
enable_authenticator_manager: true
# ...

.. code-block:: xml

<!-- config/packages/security.xml -->
<?xml version="1.0" encoding="UTF-8"?>
<srv:container xmlns="http://symfony.com/schema/dic/security"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:srv="http://symfony.com/schema/dic/services"
xsi:schemaLocation="http://symfony.com/schema/dic/services
https://symfony.com/schema/dic/services/services-1.0.xsd
http://symfony.com/schema/dic/security
https://symfony.com/schema/dic/security/security-1.0.xsd">

<config enable-authenticator-manager="true">
<!-- ... -->
</config>
</srv:container>

.. code-block:: php

// config/packages/security.php
$container->loadFromExtension('security', [
'enable_authenticator_manager' => true,
// ...
]);

.. _initial-security-yml-setup-authentication:
.. _initial-security-yaml-setup-authentication:
.. _create-user-class:
Expand Down Expand Up @@ -1121,6 +1164,7 @@ Authentication (Identifying/Logging in the User)
.. toctree::
:maxdepth: 1

security/experimental_authenticators
security/form_login_setup
security/reset_password
security/json_login_setup
Expand Down
Loading
0