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
This is called after successful authentication and your job is to either
305
305
return a :class:`Symfony\\Component\\HttpFoundation\\Response` object
306
306
that will be sent to the client or ``null`` to continue the request
@@ -321,7 +321,7 @@ Each authenticator needs the following methods:
321
321
the user authenticate (e.g. a 401 response that says "token is missing!").
322
322
323
323
**supportsRememberMe()**
324
-
If you want to support "remember me" functionality, return true from this method.
324
+
If you want to support "remember me" functionality, return ``true`` from this method.
325
325
You will still need to activate ``remember_me`` under your firewall for it to work.
326
326
Since this is a stateless API, you do not want to support "remember me"
327
327
functionality in this example.
@@ -330,7 +330,7 @@ Each authenticator needs the following methods:
330
330
If you are implementing the :class:`Symfony\\Component\\Security\\Guard\\AuthenticatorInterface`
331
331
instead of extending the :class:`Symfony\\Component\\Security\\Guard\\AbstractGuardAuthenticator`
332
332
class, you have to implement this method. It will be called
333
-
after a successful authentication to create and return the token
333
+
after a successful authentication to create and return the token (a class implementing :class:`Symfony\\Component\\Security\\Guard\\Token\\GuardTokenInterface`)
334
334
for the user, who was supplied as the first argument.
335
335
336
336
The picture below shows how Symfony calls Guard Authenticator methods:
0 commit comments