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 @@ -339,7 +339,7 @@ Passport Attributes
339
339
340
340
Besides badges, passports can define attributes, which allows the ``authenticate() ``
341
341
method to store arbitrary information in the passport to access it from other
342
- authenticator methods (e.g. ``createAuthenticatedToken () ``)::
342
+ authenticator methods (e.g. ``createToken () ``)::
343
343
344
344
// ...
345
345
use Symfony\Component\Security\Http\Authenticator\Passport\Badge\UserBadge;
@@ -360,7 +360,7 @@ authenticator methods (e.g. ``createAuthenticatedToken()``)::
360
360
return $passport;
361
361
}
362
362
363
- public function createAuthenticatedToken (PassportInterface $passport, string $firewallName): TokenInterface
363
+ public function createToken (PassportInterface $passport, string $firewallName): TokenInterface
364
364
{
365
365
// read the attribute value
366
366
return new CustomOauthToken($passport->getUser(), $passport->getAttribute('scope'));
You can’t perform that action at this time.
0 commit comments