Error 401 Unauthorized

GET https://demo.yellowfishtravel.com/api/flight-number/list?flight_number=tp&type=arrival

Security

Token

There is no security token.

Firewall

api Name
Security enabled
Stateless

Configuration

Key Value
provider security.user.provider.concrete.api
context api
entry_point (none)
user_checker security.user_checker
access_denied_handler (none)
access_denied_url (none)
authenticators
[
  "App\Security\ApiKeyAuthenticator"
]

Listeners

Listener Duration Response
Symfony\Component\Security\Http\Firewall\ChannelListener {#408
  -map: Symfony\Component\Security\Http\AccessMap {#407 …}
  -logger: Monolog\Logger {#417 …}
  -httpPort: 80
  -httpsPort: 443
}
(none) (none)
Symfony\Component\Security\Http\Firewall\ContextListener {#378
  -sessionKey: "_security_api"
  -registered: false
  -trustResolver: Symfony\Component\Security\Core\Authentication\AuthenticationTrustResolver {#419 …}
  -sessionTrackerEnabler: Symfony\Component\Security\Core\Authentication\Token\Storage\UsageTrackingTokenStorage::enableUsageTracking(): void {#375 …}
  -tokenStorage: Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage {#505 …}
  -userProviders: Symfony\Component\DependencyInjection\Argument\RewindableGenerator {#377 …}
  -logger: Monolog\Logger {#417 …}
  -dispatcher: Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher {#384 …}
}
0.01 ms (none)
Symfony\Component\Security\Http\Firewall\AuthenticatorManagerListener {#331
  -authenticatorManager: Symfony\Component\Security\Http\Authentication\AuthenticatorManager {#323 …}
}
1.75 ms
Symfony\Component\HttpFoundation\JsonResponse {#355
  +headers: Symfony\Component\HttpFoundation\ResponseHeaderBag {#275 …}
  #content: "{"message":"No API token provided"}"
  #version: "1.0"
  #statusCode: 401
  #statusText: "Unauthorized"
  #charset: "UTF-8"
  -sentHeaders: ? array
  #data: "{"message":"No API token provided"}"
  #callback: null
  #encodingOptions: 15
}
Symfony\Component\Security\Http\Firewall\AccessListener {#363
  -tokenStorage: Symfony\Component\Security\Core\Authentication\Token\Storage\UsageTrackingTokenStorage {#506 …}
  -accessDecisionManager: Symfony\Component\Security\Core\Authorization\TraceableAccessDecisionManager {#329 …}
  -map: Symfony\Component\Security\Http\AccessMap {#407 …}
}
(none) (none)

Authenticators

Status Authenticator
failure
"App\Security\ApiKeyAuthenticator"
Lazy no
Duration 0.49 ms
Badges
Exception
Symfony\Component\Security\Core\Exception\CustomUserMessageAuthenticationException {#366
  #message: "No API token provided"
  #code: 0
  #file: "/var/www/vhosts/yellowfishtravel.com/demo.yellowfishtravel.com/project/src/Security/ApiKeyAuthenticator.php"
  #line: 50
  -token: null
  -messageKey: "No API token provided"
  -messageData: []
  trace: {
    /var/www/vhosts/yellowfishtravel.com/demo.yellowfishtravel.com/project/src/Security/ApiKeyAuthenticator.php:50 {
      App\Security\ApiKeyAuthenticator->authenticate(Request $request): Passport …
      ›     // Code 401 "Unauthorized"\r    throw new CustomUserMessageAuthenticationException('No API token provided');\r}\r
    }
    /var/www/vhosts/yellowfishtravel.com/demo.yellowfishtravel.com/project/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 {
    }
    /var/www/vhosts/yellowfishtravel.com/demo.yellowfishtravel.com/project/vendor/symfony/security-http/Authentication/AuthenticatorManager.php:185 {
      Symfony\Component\Security\Http\Authentication\AuthenticatorManager->executeAuthenticator(AuthenticatorInterface $authenticator, Request $request): Response …
      › // get the passport from the Authenticator$passport = $authenticator->authenticate($request);}
    /var/www/vhosts/yellowfishtravel.com/demo.yellowfishtravel.com/project/vendor/symfony/security-http/Authentication/AuthenticatorManager.php:167 {
      Symfony\Component\Security\Http\Authentication\AuthenticatorManager->executeAuthenticators(array $authenticators, Request $request): Response …
      › 
      › $response = $this->executeAuthenticator($authenticator, $request);if (null !== $response) {
    }
    /var/www/vhosts/yellowfishtravel.com/demo.yellowfishtravel.com/project/vendor/symfony/security-http/Authentication/AuthenticatorManager.php:149 {
      Symfony\Component\Security\Http\Authentication\AuthenticatorManager->authenticateRequest(Request $request): Response …
      › 
      ›     return $this->executeAuthenticators($authenticators, $request);}
    }
    /var/www/vhosts/yellowfishtravel.com/demo.yellowfishtravel.com/project/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) {
    }
    /var/www/vhosts/yellowfishtravel.com/demo.yellowfishtravel.com/project/vendor/symfony/security-http/Authenticator/Debug/TraceableAuthenticatorManagerListener.php:58 {
      Symfony\Component\Security\Http\Authenticator\Debug\TraceableAuthenticatorManagerListener->authenticate(RequestEvent $event): void …
      › {    $this->authenticationManagerListener->authenticate($event);}
    }
    /var/www/vhosts/yellowfishtravel.com/demo.yellowfishtravel.com/project/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) {
    }
    /var/www/vhosts/yellowfishtravel.com/demo.yellowfishtravel.com/project/vendor/symfony/security-http/Firewall/AbstractListener.php:31 {
      Symfony\Component\Security\Http\Firewall\AbstractListener->__invoke(RequestEvent $event): void …
      › if (false !== $this->supports($event->getRequest())) {    $this->authenticate($event);}
    }
    /var/www/vhosts/yellowfishtravel.com/demo.yellowfishtravel.com/project/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);}
    /var/www/vhosts/yellowfishtravel.com/demo.yellowfishtravel.com/project/vendor/symfony/security-http/Firewall.php:93 {
      Symfony\Component\Security\Http\Firewall->onKernelRequest(RequestEvent $event) …
      › 
      ›     $this->callListeners($event, $authenticationListeners());}
    }
    /var/www/vhosts/yellowfishtravel.com/demo.yellowfishtravel.com/project/vendor/symfony/event-dispatcher/Debug/WrappedListener.php:115 {
      Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke(object $event, string $eventName, EventDispatcherInterface $dispatcher): void …
      › try {    ($this->optimizedListener ?? $this->listener)($event, $eventName, $dispatcher);} finally {
    }
    /var/www/vhosts/yellowfishtravel.com/demo.yellowfishtravel.com/project/vendor/symfony/event-dispatcher/EventDispatcher.php:206 {
      Symfony\Component\EventDispatcher\EventDispatcher->callListeners(iterable $listeners, string $eventName, object $event): void …
      ›     }    $listener($event, $eventName, $this);}
    }
    /var/www/vhosts/yellowfishtravel.com/demo.yellowfishtravel.com/project/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);}
    }
    /var/www/vhosts/yellowfishtravel.com/demo.yellowfishtravel.com/project/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:126 {
      Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch(object $event, ?string $eventName = null): object …
      › try {    $this->dispatcher->dispatch($event, $eventName);} finally {
    }
    /var/www/vhosts/yellowfishtravel.com/demo.yellowfishtravel.com/project/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);}
    /var/www/vhosts/yellowfishtravel.com/demo.yellowfishtravel.com/project/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) {
    }
    /var/www/vhosts/yellowfishtravel.com/demo.yellowfishtravel.com/project/vendor/symfony/http-kernel/Kernel.php:193 {
      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 {
    }
    /var/www/vhosts/yellowfishtravel.com/demo.yellowfishtravel.com/project/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35 {
      Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run(): int …
      › {    $response = $this->kernel->handle($this->request);}
    /var/www/vhosts/yellowfishtravel.com/demo.yellowfishtravel.com/project/vendor/autoload_runtime.php:29 {
      require_once …
      ›         ->getRunner($app)        ->run());
    }
    /var/www/vhosts/yellowfishtravel.com/demo.yellowfishtravel.com/public_html/index.php:5 {\rrequire_once dirname(__DIR__).'/project/vendor/autoload_runtime.php';\r\r
      arguments: {
        "/var/www/vhosts/yellowfishtravel.com/demo.yellowfishtravel.com/project/vendor/autoload_runtime.php"
      }
    }
  }
}

Access Decision