Error 401 Unauthorized

GET https://testj1.location-collective.co.uk/api/category-locations/306/1?location_type=filming-location

Security

Token

There is no security token.

Firewall

api Name
Security enabled
Stateless

Configuration

Key Value
provider App\Service\J1UserProvider
context (none)
entry_point security.authenticator.jwt.api
user_checker security.user_checker
access_denied_handler (none)
access_denied_url (none)
authenticators
[
  "jwt"
]

Listeners

Listener Duration Response
Symfony\Component\Security\Http\Firewall\ChannelListener {#294
  -map: Symfony\Component\Security\Http\AccessMap {#295 …}
  -logger: Monolog\Logger {#286 …}
  -httpPort: 80
  -httpsPort: 443
}
(none) (none)
Symfony\Component\Security\Http\Firewall\AuthenticatorManagerListener {#324
  -authenticatorManager: Symfony\Component\Security\Http\Authentication\AuthenticatorManager {#302 …}
}
13.35 ms
Lexik\Bundle\JWTAuthenticationBundle\Response\JWTAuthenticationFailureResponse {#278
  +headers: Symfony\Component\HttpFoundation\ResponseHeaderBag {#230 …}
  #content: "{"code":401,"message":"Expired JWT Token"}"
  #version: "1.1"
  #statusCode: 401
  #statusText: "Unauthorized"
  #charset: "UTF-8"
  -sentHeaders: ? array
  #data: "{"code":401,"message":"Expired JWT Token"}"
  #callback: null
  #encodingOptions: 15
  -message: "Expired JWT Token"
}
Symfony\Component\Security\Http\Firewall\AccessListener {#335
  -tokenStorage: Symfony\Component\Security\Core\Authentication\Token\Storage\UsageTrackingTokenStorage {#206 …}
  -accessDecisionManager: Symfony\Component\Security\Core\Authorization\TraceableAccessDecisionManager {#333 …}
  -map: Symfony\Component\Security\Http\AccessMap {#295 …}
}
(none) (none)

Authenticators

Status Authenticator
failure
"Lexik\Bundle\JWTAuthenticationBundle\Security\Authenticator\JWTAuthenticator"
Lazy no
Duration 7.15 ms
Badges
Exception
Lexik\Bundle\JWTAuthenticationBundle\Exception\ExpiredTokenException {#346
  #message: ""
  #code: 0
  #file: "/home/locationtest/public_html/j1/vendor/lexik/jwt-authentication-bundle/Security/Authenticator/JWTAuthenticator.php"
  #line: 91
  -token: null
  trace: {
    /home/locationtest/public_html/j1/vendor/lexik/jwt-authentication-bundle/Security/Authenticator/JWTAuthenticator.php:91 {
      Lexik\Bundle\JWTAuthenticationBundle\Security\Authenticator\JWTAuthenticator->authenticate(Request $request): Passport …
      › if (JWTDecodeFailureException::EXPIRED_TOKEN === $e->getReason()) {    throw new ExpiredTokenException();}
    }
    /home/locationtest/public_html/j1/vendor/symfony/security-http/Authenticator/Debug/TraceableAuthenticator.php:74 {
      Symfony\Component\Security\Http\Authenticator\Debug\TraceableAuthenticator->authenticate(Request $request): Passport …
      › try {    $this->passport = $this->authenticator->authenticate($request);} finally {
      arguments: {
        $request: Symfony\Component\HttpFoundation\Request {#12 …}
      }
    }
    /home/locationtest/public_html/j1/vendor/symfony/security-http/Authentication/AuthenticatorManager.php:174 {
      Symfony\Component\Security\Http\Authentication\AuthenticatorManager->executeAuthenticator(AuthenticatorInterface $authenticator, Request $request): Response …
      › // get the passport from the Authenticator$passport = $authenticator->authenticate($request);arguments: {
        $request: Symfony\Component\HttpFoundation\Request {#12 …}
      }
    }
    /home/locationtest/public_html/j1/vendor/symfony/security-http/Authentication/AuthenticatorManager.php:156 {
      Symfony\Component\Security\Http\Authentication\AuthenticatorManager->executeAuthenticators(array $authenticators, Request $request): Response …
      › 
      › $response = $this->executeAuthenticator($authenticator, $request);if (null !== $response) {
      arguments: {
        $authenticator: Symfony\Component\Security\Http\Authenticator\Debug\TraceableAuthenticator {#326 …}
        $request: Symfony\Component\HttpFoundation\Request {#12 …}
      }
    }
    /home/locationtest/public_html/j1/vendor/symfony/security-http/Authentication/AuthenticatorManager.php:138 {
      Symfony\Component\Security\Http\Authentication\AuthenticatorManager->authenticateRequest(Request $request): Response …
      › 
      ›     return $this->executeAuthenticators($authenticators, $request);}
      arguments: {
        $authenticators: [ …1]
        $request: Symfony\Component\HttpFoundation\Request {#12 …}
      }
    }
    /home/locationtest/public_html/j1/vendor/symfony/security-http/Firewall/AuthenticatorManagerListener.php:38 {
      Symfony\Component\Security\Http\Firewall\AuthenticatorManagerListener->authenticate(RequestEvent $event): void …
      › $request = $event->getRequest();$response = $this->authenticatorManager->authenticateRequest($request);if (null === $response) {
      arguments: {
        $request: Symfony\Component\HttpFoundation\Request {#12 …}
      }
    }
    /home/locationtest/public_html/j1/vendor/symfony/security-http/Authenticator/Debug/TraceableAuthenticatorManagerListener.php:58 {
      Symfony\Component\Security\Http\Authenticator\Debug\TraceableAuthenticatorManagerListener->authenticate(RequestEvent $event): void …
      › {    $this->authenticationManagerListener->authenticate($event);}
      arguments: {
        $event: Symfony\Component\HttpKernel\Event\RequestEvent {#43 …}
      }
    }
    /home/locationtest/public_html/j1/vendor/symfony/security-bundle/Debug/WrappedLazyListener.php:46 {
      Symfony\Bundle\SecurityBundle\Debug\WrappedLazyListener->authenticate(RequestEvent $event): void …
      › try {    $this->listener->authenticate($event);} catch (LazyResponseException $e) {
      arguments: {
        $event: Symfony\Component\HttpKernel\Event\RequestEvent {#43 …}
      }
    }
    /home/locationtest/public_html/j1/vendor/symfony/security-http/Firewall/AbstractListener.php:26 {
      Symfony\Component\Security\Http\Firewall\AbstractListener->__invoke(RequestEvent $event): void …
      › if (false !== $this->supports($event->getRequest())) {    $this->authenticate($event);}
      arguments: {
        $event: Symfony\Component\HttpKernel\Event\RequestEvent {#43 …}
      }
    }
    /home/locationtest/public_html/j1/vendor/symfony/security-bundle/Debug/TraceableFirewallListener.php:91 {
      Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener->callListeners(RequestEvent $event, iterable $listeners): void …
      › foreach ($requestListeners as $listener) {    $listener($event);arguments: {
        $event: Symfony\Component\HttpKernel\Event\RequestEvent {#43 …}
      }
    }
    /home/locationtest/public_html/j1/vendor/symfony/security-http/Firewall.php:92 {
      Symfony\Component\Security\Http\Firewall->onKernelRequest(RequestEvent $event) …
      › 
      ›     $this->callListeners($event, $authenticationListeners());}
      arguments: {
        $event: Symfony\Component\HttpKernel\Event\RequestEvent {#43 …}
        $listeners: Generator {#222 …}
      }
    }
    /home/locationtest/public_html/j1/vendor/symfony/event-dispatcher/EventDispatcher.php:246 {
      Symfony\Component\EventDispatcher\EventDispatcher::Symfony\Component\EventDispatcher\{closure} …
      ›     }    ($closure = $listener(...))(...$args);};
      arguments: {
        $event: Symfony\Component\HttpKernel\Event\RequestEvent {#43 …}
        ...: {
          "kernel.request"
          Symfony\Component\EventDispatcher\EventDispatcher {#142 …}
        }
      }
    }
    /home/locationtest/public_html/j1/vendor/symfony/event-dispatcher/EventDispatcher.php:206 {
      Symfony\Component\EventDispatcher\EventDispatcher->callListeners(iterable $listeners, string $eventName, object $event): void …
      ›     }    $listener($event, $eventName, $this);}
      arguments: {
        Symfony\Component\HttpKernel\Event\RequestEvent {#43 …}
        "kernel.request"
        Symfony\Component\EventDispatcher\EventDispatcher {#142 …}
      }
    }
    /home/locationtest/public_html/j1/vendor/symfony/event-dispatcher/EventDispatcher.php:56 {
      Symfony\Component\EventDispatcher\EventDispatcher->dispatch(object $event, ?string $eventName = null): object …
      › if ($listeners) {    $this->callListeners($listeners, $eventName, $event);}
      arguments: {
        $listeners: [ …11]
        $eventName: "kernel.request"
        $event: Symfony\Component\HttpKernel\Event\RequestEvent {#43 …}
      }
    }
    /home/locationtest/public_html/j1/vendor/symfony/http-kernel/HttpKernel.php:159 {
      Symfony\Component\HttpKernel\HttpKernel->handleRaw(Request $request, int $type = self::MAIN_REQUEST): Response …
      › $event = new RequestEvent($this, $request, $type);$this->dispatcher->dispatch($event, KernelEvents::REQUEST);arguments: {
        $event: Symfony\Component\HttpKernel\Event\RequestEvent {#43 …}
        $eventName: "kernel.request"
      }
    }
    /home/locationtest/public_html/j1/vendor/symfony/http-kernel/HttpKernel.php:76 {
      Symfony\Component\HttpKernel\HttpKernel->handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true): Response …
      › try {    return $response = $this->handleRaw($request, $type);} catch (\Throwable $e) {
      arguments: {
        $request: Symfony\Component\HttpFoundation\Request {#12 …}
        $type: 1
      }
    }
    /home/locationtest/public_html/j1/vendor/symfony/http-kernel/Kernel.php:182 {
      Symfony\Component\HttpKernel\Kernel->handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true): Response …
      › try {    return $this->getHttpKernel()->handle($request, $type, $catch);} finally {
      arguments: {
        $request: Symfony\Component\HttpFoundation\Request {#12 …}
        $type: 1
        $catch: true
      }
    }
    /home/locationtest/public_html/j1/public/index.php:24 {$request = Request::createFromGlobals();$response = $kernel->handle($request);$response->send();
      arguments: {
        $request: Symfony\Component\HttpFoundation\Request {#12 …}
      }
    }
  }
}

Access Decision

affirmative Strategy
# Voter class
1
"Symfony\Component\Security\Core\Authorization\Voter\AuthenticatedVoter"
2
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"