vendor/lexik/jwt-authentication-bundle/Security/Http/EntryPoint/JWTEntryPoint.php line 23

Open in your IDE?
  1. <?php
  2. namespace Lexik\Bundle\JWTAuthenticationBundle\Security\Http\EntryPoint;
  3. use Lexik\Bundle\JWTAuthenticationBundle\Response\JWTAuthenticationFailureResponse;
  4. use Lexik\Bundle\JWTAuthenticationBundle\Security\Guard\JWTTokenAuthenticator;
  5. use Symfony\Component\HttpFoundation\Request;
  6. use Symfony\Component\Security\Core\Exception\AuthenticationException;
  7. use Symfony\Component\Security\Http\EntryPoint\AuthenticationEntryPointInterface;
  8. /**
  9.  * JWTEntryPoint starts throw a 401 when not authenticated.
  10.  *
  11.  * @author Jérémie Augustin <jeremie.augustin@pixel-cookers.com>
  12.  *
  13.  * @deprecated since 2.0, will be removed in 3.0. Use
  14.  *             {@link JWTTokenAuthenticator} instead
  15.  */
  16. class JWTEntryPoint implements AuthenticationEntryPointInterface
  17. {
  18.     public function __construct()
  19.     {
  20.         @trigger_error(sprintf('The "%s" class is deprecated since version 2.0 and will be removed in 3.0. Use "%s" instead.'__CLASS__JWTTokenAuthenticator::class), E_USER_DEPRECATED);
  21.     }
  22.     /**
  23.      * {@inheritdoc}
  24.      */
  25.     public function start(Request $requestAuthenticationException $authException null)
  26.     {
  27.         $response = new JWTAuthenticationFailureResponse();
  28.         return $response;
  29.     }
  30. }