From 274053351d008608e59b5b0c7a7cc22aecf69c37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Sun, 27 Mar 2022 22:05:10 +0200 Subject: [PATCH] [Security] fix method name in custom_authenticator.rst --- security/custom_authenticator.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/security/custom_authenticator.rst b/security/custom_authenticator.rst index fc2487c0caf..f75cb8df444 100644 --- a/security/custom_authenticator.rst +++ b/security/custom_authenticator.rst @@ -350,7 +350,7 @@ Passport Attributes Besides badges, passports can define attributes, which allows the ``authenticate()`` method to store arbitrary information in the passport to access it from other -authenticator methods (e.g. ``createAuthenticatedToken()``):: +authenticator methods (e.g. ``createToken()``):: // ... use Symfony\Component\Security\Http\Authenticator\Passport\Badge\UserBadge; @@ -371,7 +371,7 @@ authenticator methods (e.g. ``createAuthenticatedToken()``):: return $passport; } - public function createAuthenticatedToken(PassportInterface $passport, string $firewallName): TokenInterface + public function createToken(PassportInterface $passport, string $firewallName): TokenInterface { // read the attribute value return new CustomOauthToken($passport->getUser(), $passport->getAttribute('scope'));