File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -350,7 +350,7 @@ Passport Attributes
350
350
351
351
Besides badges, passports can define attributes, which allows the ``authenticate() ``
352
352
method to store arbitrary information in the passport to access it from other
353
- authenticator methods (e.g. ``createAuthenticatedToken () ``)::
353
+ authenticator methods (e.g. ``createToken () ``)::
354
354
355
355
// ...
356
356
use Symfony\Component\Security\Http\Authenticator\Passport\Badge\UserBadge;
@@ -371,7 +371,7 @@ authenticator methods (e.g. ``createAuthenticatedToken()``)::
371
371
return $passport;
372
372
}
373
373
374
- public function createAuthenticatedToken (PassportInterface $passport, string $firewallName): TokenInterface
374
+ public function createToken (PassportInterface $passport, string $firewallName): TokenInterface
375
375
{
376
376
// read the attribute value
377
377
return new CustomOauthToken($passport->getUser(), $passport->getAttribute('scope'));
You can’t perform that action at this time.
0 commit comments