You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
has a method ``supports()`` by which the ``AuthenticationProviderManager``
99
+
has a method :method:`Symfony\\Component\\Security\\Core\\Authentication\\Provider\\AuthenticationProviderInterface::supports`
100
+
by which the ``AuthenticationProviderManager``
102
101
can determine if it supports the given token. If this is the case, the
103
-
manager then calls the provider's method ``authenticate()``. This method
102
+
manager then calls the provider's method :class:`Symfony\\Component\\Security\\Core\\Authentication\\Provider\\AuthenticationProviderInterface::authenticate`. This method
104
103
should return an authenticated token or throw an :class:`Symfony\\Component\\Security\\Core\\Exception\\AuthenticationException`
105
104
(or any other exception extending it).
106
105
@@ -117,11 +116,10 @@ from the user data storage, hash the password the user has just provided
117
116
the given password is valid.
118
117
119
118
This functionality is offered by the :class:`Symfony\\Component\\Security\\Core\\Authentication\\Provider\\DaoAuthenticationProvider`.
120
-
It fetches the user's data from a ``UserProvider``, uses a ``PasswordEncoder``
119
+
It fetches the user's data from a :class:`Symfony\\Component\\Security\\Core\\User\\UserProviderInterface``,
120
+
uses a :class:`Symfony\\Component\\Security\\Core\\Encoder\\PasswordEncoderInterface`
121
121
to create a hash of the password and returns an authenticated token if the
122
-
password was valid.
123
-
124
-
::
122
+
password was valid::
125
123
126
124
use Symfony\Component\Security\Core\Authentication\Provider\DaoAuthenticationProvider;
127
125
use Symfony\Component\Security\Core\User\UserChecker;
@@ -162,13 +160,11 @@ password was valid.
162
160
The password encoder factory
163
161
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
164
162
165
-
The ``DaoAuthenticationProvider`` uses an encoder factory to create a password
166
-
encoder for a given type of user. This allows you to use different encoding
167
-
strategies for different types of users.
168
-
The default :class:`Symfony\\Component\\Security\\Core\\Encoder\\EncoderFactory`
169
-
receives an array of encoders:
170
-
171
-
::
163
+
The :class:`Symfony\\Component\\Security\\Core\\Authentication\\Provider\\DaoAuthenticationProvider`
164
+
uses an encoder factory to create a password encoder for a given type of
165
+
user. This allows you to use different encoding strategies for different
166
+
types of users. The default :class:`Symfony\\Component\\Security\\Core\\Encoder\\EncoderFactory`
167
+
receives an array of encoders::
172
168
173
169
use Symfony\Component\Security\Core\Encoder\EncoderFactory;
174
170
use Symfony\Component\Security\Core\Encoder\MessageDigestPasswordEncoder;
@@ -179,7 +175,7 @@ receives an array of encoders:
0 commit comments