@@ -303,7 +303,7 @@ Finally, configure your ``firewalls`` key in ``security.yml`` to use this authen
303
303
304
304
# if you want, disable storing the user in the session
305
305
# stateless: true
306
-
306
+
307
307
# maybe other things, like form_login, remember_me, etc
308
308
# ...
309
309
@@ -427,7 +427,7 @@ Each authenticator needs the following methods:
427
427
428
428
**supportsRememberMe **
429
429
If you want to support "remember me" functionality, return true from this method.
430
- You will still need to active ``rememebe_me `` under your firewall for it to work.
430
+ You will still need to active ``remember_me `` under your firewall for it to work.
431
431
Since this is a stateless API, you do not want to support "remember me"
432
432
functionality in this example.
433
433
@@ -448,17 +448,17 @@ to cause a failure::
448
448
449
449
// src/AppBundle/Security/TokenAuthenticator.php
450
450
// ...
451
-
451
+
452
452
use Symfony\Component\Security\Core\Exception\CustomUserMessageAuthenticationException;
453
-
453
+
454
454
class TokenAuthenticator extends AbstractGuardAuthenticator
455
455
{
456
456
// ...
457
-
457
+
458
458
public function getCredentials(Request $request)
459
459
{
460
460
// ...
461
-
461
+
462
462
if ($token == 'ILuvAPIs') {
463
463
throw new CustomUserMessageAuthenticationException(
464
464
'ILuvAPIs is not a real API key: it\'s just a silly phrase'
@@ -467,7 +467,7 @@ to cause a failure::
467
467
468
468
// ...
469
469
}
470
-
470
+
471
471
// ...
472
472
}
473
473
@@ -512,7 +512,7 @@ Frequently Asked Questions
512
512
513
513
# if you want, disable storing the user in the session
514
514
# stateless: true
515
-
515
+
516
516
# maybe other things, like form_login, remember_me, etc
517
517
# ...
518
518
0 commit comments