Skip to content

Commit b70b022

Browse files
committed
minor #16659 [Security] fix method name in custom_authenticator.rst (dunglas)
This PR was merged into the 5.4 branch. Discussion ---------- [Security] fix method name in custom_authenticator.rst The method name wasn't good. Commits ------- 2740533 [Security] fix method name in custom_authenticator.rst
2 parents ab67a3f + 2740533 commit b70b022

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

security/custom_authenticator.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ Passport Attributes
350350

351351
Besides badges, passports can define attributes, which allows the ``authenticate()``
352352
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()``)::
354354

355355
// ...
356356
use Symfony\Component\Security\Http\Authenticator\Passport\Badge\UserBadge;
@@ -371,7 +371,7 @@ authenticator methods (e.g. ``createAuthenticatedToken()``)::
371371
return $passport;
372372
}
373373

374-
public function createAuthenticatedToken(PassportInterface $passport, string $firewallName): TokenInterface
374+
public function createToken(PassportInterface $passport, string $firewallName): TokenInterface
375375
{
376376
// read the attribute value
377377
return new CustomOauthToken($passport->getUser(), $passport->getAttribute('scope'));

0 commit comments

Comments
 (0)