Error 401 Unauthorized

GET https://stage.report.valtema.ch/api/users/current

Security

Token

There is no security token.

Firewall

api Name
Security enabled
Stateless

Configuration

Key Value
provider security.user.provider.concrete.default_provider
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 {#1241
  -map: Symfony\Component\Security\Http\AccessMap {#1242 …}
  -logger: Monolog\Logger {#1235 …}
  -httpPort: 80
  -httpsPort: 443
}
(none) (none)
Symfony\Component\Security\Http\Firewall\AuthenticatorManagerListener {#1271
  -authenticatorManager: Symfony\Component\Security\Http\Authentication\AuthenticatorManager {#1260 …}
}
30.10 ms
Lexik\Bundle\JWTAuthenticationBundle\Response\JWTAuthenticationFailureResponse {#1289
  +headers: Symfony\Component\HttpFoundation\ResponseHeaderBag {#1290 …}
  #content: "{"code":401,"message":"Invalid JWT Token"}"
  #version: "1.1"
  #statusCode: 401
  #statusText: "Unauthorized"
  #charset: "UTF-8"
  -sentHeaders: ? array
  #data: "{"code":401,"message":"Invalid JWT Token"}"
  #callback: null
  #encodingOptions: 15
  -message: "Invalid JWT Token"
}
Symfony\Component\Security\Http\Firewall\AccessListener {#1273
  -tokenStorage: Symfony\Component\Security\Core\Authentication\Token\Storage\UsageTrackingTokenStorage {#441 …}
  -accessDecisionManager: Symfony\Component\Security\Core\Authorization\TraceableAccessDecisionManager {#541 …}
  -map: Symfony\Component\Security\Http\AccessMap {#1242 …}
}
(none) (none)

Authenticators

Status Authenticator
failure
"Lexik\Bundle\JWTAuthenticationBundle\Security\Authenticator\JWTAuthenticator"
Lazy no
Duration 14.52 ms
Badges
Exception
Lexik\Bundle\JWTAuthenticationBundle\Exception\InvalidTokenException {#1279
  #message: "Invalid JWT Token"
  #code: 0
  #file: "/var/www/stage.report.valtema.ch/vendor/lexik/jwt-authentication-bundle/Security/Authenticator/JWTAuthenticator.php"
  #line: 120
  -previous: Lexik\Bundle\JWTAuthenticationBundle\Exception\JWTDecodeFailureException {#1240 …}
  -token: null
  trace: {
    /var/www/stage.report.valtema.ch/vendor/lexik/jwt-authentication-bundle/Security/Authenticator/JWTAuthenticator.php:120 {
      Lexik\Bundle\JWTAuthenticationBundle\Security\Authenticator\JWTAuthenticator->doAuthenticate(Request $request) …
      › 
      ›     throw new InvalidTokenException('Invalid JWT Token', 0, $e);
      › }
    }
    /var/www/stage.report.valtema.ch/vendor/lexik/jwt-authentication-bundle/Security/Authenticator/ForwardCompatAuthenticatorTrait.php:14 {
      Lexik\Bundle\JWTAuthenticationBundle\Security\Authenticator\JWTAuthenticator->authenticate(Request $request): Passport …
      › if ($r->hasReturnType() && Passport::class === $r->getReturnType()->getName()) {
      ›     eval('
      ›     namespace Lexik\Bundle\JWTAuthenticationBundle\Security\Authenticator;
    }
    /var/www/stage.report.valtema.ch/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/stage.report.valtema.ch/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);
      › 
    }
    /var/www/stage.report.valtema.ch/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) {
    }
    /var/www/stage.report.valtema.ch/vendor/symfony/security-http/Authentication/AuthenticatorManager.php:138 {
      Symfony\Component\Security\Http\Authentication\AuthenticatorManager->authenticateRequest(Request $request): Response …
      › 
      ›     return $this->executeAuthenticators($authenticators, $request);
      › }
    }
    /var/www/stage.report.valtema.ch/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/stage.report.valtema.ch/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/stage.report.valtema.ch/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/stage.report.valtema.ch/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);
      › }
    }
    /var/www/stage.report.valtema.ch/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/stage.report.valtema.ch/vendor/symfony/security-http/Firewall.php:92 {
      Symfony\Component\Security\Http\Firewall->onKernelRequest(RequestEvent $event) …
      › 
      ›     $this->callListeners($event, $authenticationListeners());
      › }
    }
    /var/www/stage.report.valtema.ch/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/stage.report.valtema.ch/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/stage.report.valtema.ch/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/stage.report.valtema.ch/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:122 {
      Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch(object $event, ?string $eventName = null): object …
      › try {
      ›     $this->dispatcher->dispatch($event, $eventName);
      › } finally {
    }
    /var/www/stage.report.valtema.ch/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/stage.report.valtema.ch/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/stage.report.valtema.ch/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 {
    }
    /var/www/stage.report.valtema.ch/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35 {
      Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run(): int …
      › {
      ›     $response = $this->kernel->handle($this->request);
      › 
    }
    /var/www/stage.report.valtema.ch/vendor/autoload_runtime.php:29 {
      require_once …
      ›         ->getRunner($app)
      ›         ->run()
      › );
    }
    /var/www/stage.report.valtema.ch/public/index.php:5 {
      › 
      › require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
      › 
      arguments: {
        "/var/www/stage.report.valtema.ch/vendor/autoload_runtime.php"
      }
    }
  }
}

Access Decision

affirmative Strategy
# Voter class
1
"Symfony\Component\Security\Core\Authorization\Voter\AuthenticatedVoter"
2
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
3
"Symfony\Component\Security\Core\Authorization\Voter\ExpressionVoter"
4
"App\Security\ReportVoter"
5
"App\Security\UserVoter"
6
"EasyCorp\Bundle\EasyAdminBundle\Security\SecurityVoter"