@@ -241,7 +241,7 @@ Finally, configure your ``firewalls`` key in ``security.yaml`` to use this authe
241
241
'logout' => true,
242
242
'guard' => [
243
243
'authenticators' => [
244
- TokenAuthenticator::class
244
+ TokenAuthenticator::class,
245
245
],
246
246
],
247
247
// ...
@@ -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,8 @@ 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
334
+ class implementing :class: `Symfony\\ Component\\ Security\\ Guard\\ Token\\ GuardTokenInterface `)
334
335
for the user, who was supplied as the first argument.
335
336
336
337
The picture below shows how Symfony calls Guard Authenticator methods:
0 commit comments