@@ -300,7 +300,7 @@ method that fits most use-cases::
300
300
use Symfony\Component\Security\Core\Exception\CustomUserMessageAuthenticationException;
301
301
use Symfony\Component\Security\Http\Authenticator\AbstractAuthenticator;
302
302
use Symfony\Component\Security\Http\Authenticator\Passport\Badge\UserBadge;
303
- use Symfony\Component\Security\Http\Authenticator\Passport\PassportInterface ;
303
+ use Symfony\Component\Security\Http\Authenticator\Passport\Passport ;
304
304
use Symfony\Component\Security\Http\Authenticator\Passport\SelfValidatingPassport;
305
305
306
306
class ApiKeyAuthenticator extends AbstractAuthenticator
@@ -315,7 +315,7 @@ method that fits most use-cases::
315
315
return $request->headers->has('X-AUTH-TOKEN');
316
316
}
317
317
318
- public function authenticate(Request $request): PassportInterface
318
+ public function authenticate(Request $request): Passport
319
319
{
320
320
$apiToken = $request->headers->get('X-AUTH-TOKEN');
321
321
if (null === $apiToken) {
@@ -474,7 +474,7 @@ using :ref:`the user provider <security-user-providers>`::
474
474
$this->userRepository = $userRepository;
475
475
}
476
476
477
- public function authenticate(Request $request): PassportInterface
477
+ public function authenticate(Request $request): Passport
478
478
{
479
479
// ...
480
480
@@ -570,11 +570,11 @@ would initialize the passport like this::
570
570
use Symfony\Component\Security\Http\Authenticator\Passport\Badge\CsrfTokenBadge;
571
571
use Symfony\Component\Security\Http\Authenticator\Passport\Badge\UserBadge;
572
572
use Symfony\Component\Security\Http\Authenticator\Passport\Passport;
573
- use Symfony\Component\Security\Http\Authenticator\Passport\PassportInterface ;
573
+ use Symfony\Component\Security\Http\Authenticator\Passport\Passport ;
574
574
575
575
class LoginAuthenticator extends AbstractAuthenticator
576
576
{
577
- public function authenticate(Request $request): PassportInterface
577
+ public function authenticate(Request $request): Passport
578
578
{
579
579
$password = $request->request->get('password');
580
580
$username = $request->request->get('username');
@@ -604,7 +604,7 @@ would initialize the passport like this::
604
604
{
605
605
// ...
606
606
607
- public function authenticate(Request $request): PassportInterface
607
+ public function authenticate(Request $request): Passport
608
608
{
609
609
// ... process the request
610
610
@@ -616,7 +616,7 @@ would initialize the passport like this::
616
616
return $passport;
617
617
}
618
618
619
- public function createAuthenticatedToken(PassportInterface $passport, string $firewallName): TokenInterface
619
+ public function createAuthenticatedToken(Passport $passport, string $firewallName): TokenInterface
620
620
{
621
621
// read the attribute value
622
622
return new CustomOauthToken($passport->getUser(), $passport->getAttribute('scope'));
0 commit comments