Skip to content

Commit 5c6a13a

Browse files
committed
Merge branch '5.4' into 6.0
* 5.4: [Security] fix method name in custom_authenticator.rst
2 parents 14badd3 + b70b022 commit 5c6a13a

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
@@ -339,7 +339,7 @@ Passport Attributes
339339

340340
Besides badges, passports can define attributes, which allows the ``authenticate()``
341341
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()``)::
343343

344344
// ...
345345
use Symfony\Component\Security\Http\Authenticator\Passport\Badge\UserBadge;
@@ -360,7 +360,7 @@ authenticator methods (e.g. ``createAuthenticatedToken()``)::
360360
return $passport;
361361
}
362362

363-
public function createAuthenticatedToken(PassportInterface $passport, string $firewallName): TokenInterface
363+
public function createToken(PassportInterface $passport, string $firewallName): TokenInterface
364364
{
365365
// read the attribute value
366366
return new CustomOauthToken($passport->getUser(), $passport->getAttribute('scope'));

0 commit comments

Comments
 (0)