Error 401 Unauthorized

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

Request / Response

Request

GET Parameters

None

POST Parameters

None

Uploaded Files

None

Request Attributes

Key Value
_api_operation
ApiPlatform\Metadata\Get {#1150
  #parameters: null
  #shortName: "User"
  #class: "Roothirsch\CoreBundle\Entity\User"
  #description: null
  #urlGenerationStrategy: null
  #deprecationReason: null
  #normalizationContext: null
  #denormalizationContext: null
  #collectDenormalizationErrors: null
  #validationContext: null
  #filters: [
    "annotated_roothirsch_core_bundle_entity_user_api_platform_doctrine_orm_filter_search_filter"
    "annotated_roothirsch_core_bundle_entity_user_api_platform_doctrine_orm_filter_order_filter"
    "annotated_roothirsch_core_bundle_entity_user_roothirsch_core_bundle_api_filter_ag_grid_filter"
  ]
  #elasticsearch: null
  #mercure: null
  #messenger: null
  #input: null
  #output: null
  #order: null
  #fetchPartial: null
  #forceEager: null
  #paginationEnabled: null
  #paginationType: null
  #paginationItemsPerPage: 50
  #paginationMaximumItemsPerPage: null
  #paginationPartial: null
  #paginationClientEnabled: null
  #paginationClientItemsPerPage: true
  #paginationClientPartial: null
  #paginationFetchJoinCollection: null
  #paginationUseOutputWalkers: null
  #security: null
  #securityMessage: null
  #securityPostDenormalize: null
  #securityPostDenormalizeMessage: null
  #securityPostValidation: null
  #securityPostValidationMessage: null
  #provider: "ApiPlatform\Doctrine\Orm\State\ItemProvider"
  #processor: "api_platform.doctrine.orm.state.persist_processor"
  #stateOptions: ApiPlatform\Doctrine\Orm\State\Options {#1148 …}
  #queryParameterValidationEnabled: null
  #extraProperties: [
    "standard_put" => true
    "rfc_7807_compliant_errors" => true
    "generated_operation" => true
  ]
  #paginationViaCursor: null
  #read: null
  #deserialize: null
  #validate: null
  #write: null
  #serialize: null
  #priority: null
  #name: "_api_/users/{id}{._format}_get"
  #method: "GET"
  #uriTemplate: "/users/{id}{._format}"
  #types: null
  #formats: null
  #inputFormats: [
    "jsonld" => [
      "application/ld+json"
    ]
    "json" => [
      "application/json"
    ]
    "html" => [
      "text/html"
    ]
    "csv" => [
      "text/csv"
    ]
  ]
  #outputFormats: [
    "jsonld" => [
      "application/ld+json"
    ]
    "json" => [
      "application/json"
    ]
    "html" => [
      "text/html"
    ]
    "csv" => [
      "text/csv"
    ]
  ]
  #uriVariables: [
    "id" => ApiPlatform\Metadata\Link {#1146
      #key: null
      #schema: null
      #openApi: null
      #provider: null
      #filter: null
      #property: null
      #description: null
      #required: null
      #priority: null
      #hydra: null
      #constraints: null
      #security: null
      #securityMessage: null
      #extraProperties: []
      -parameterName: "id"
      -fromProperty: null
      -toProperty: null
      -fromClass: "Roothirsch\CoreBundle\Entity\User"
      -toClass: null
      -identifiers: [
        "id"
      ]
      -compositeIdentifier: null
      -expandedValue: null
      -securityObjectName: null
    }
  ]
  #routePrefix: null
  #routeName: null
  #defaults: null
  #requirements: null
  #options: null
  #stateless: true
  #sunset: null
  #acceptPatch: "application/merge-patch+json"
  #status: null
  #host: null
  #schemes: null
  #condition: null
  #controller: null
  #headers: null
  #cacheHeaders: [
    "vary" => [
      "Content-Type"
      "Authorization"
      "Origin"
    ]
  ]
  #hydraContext: null
  #openapiContext: null
  #openapi: null
  #exceptionToStatus: null
  #links: null
  #errors: null
}
_api_operation_name
"_api_/users/{id}{._format}_get"
_api_resource_class
"Roothirsch\CoreBundle\Entity\User"
_controller
"api_platform.action.placeholder"
_firewall_context
"security.firewall.map.context.api"
_format
null
_route
"_api_/users/{id}{._format}_get"
_route_params
[
  "_format" => null
  "_stateless" => true
  "_api_resource_class" => "Roothirsch\CoreBundle\Entity\User"
  "_api_operation_name" => "_api_/users/{id}{._format}_get"
  "id" => "current"
]
_stateless
true
_stopwatch_token
"b4d972"
id
"current"
input_format
null

Request Headers

Header Value
accept
"application/json"
accept-encoding
"gzip, deflate, br, zstd"
accept-language
"en-US,en;q=0.9"
authorization
"Bearer undefined"
cache-control
"no-cache"
cookie
"main_deauth_profile_token=6d99c8; PHPSESSID=bdpt33r78b7phf9gv6pd5jegos"
host
"stage.report.valtema.ch"
pragma
"no-cache"
priority
"u=1, i"
referer
"https://stage.report.valtema.ch/login"
sec-ch-ua
""Chromium";v="154", "Google Chrome";v="154", "Not:A-Brand";v="24""
sec-ch-ua-mobile
"?0"
sec-ch-ua-platform
""Linux""
sec-fetch-dest
"empty"
sec-fetch-mode
"cors"
sec-fetch-site
"same-origin"
user-agent
"Mozilla/5.0 (X11; Linux aarch64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/154.0.0.0 Safari/537.36"
x-php-ob-level
"1"

Request Content

Request content not available (it was retrieved as a resource).

Response

Response Headers

Header Value
cache-control
"no-cache, private"
content-type
"application/json"
date
"Thu, 15 Oct 2026 03:57:19 GMT"
www-authenticate
"Bearer"
x-debug-token
"2f72c0"

Cookies

Request Cookies

Key Value
PHPSESSID
"bdpt33r78b7phf9gv6pd5jegos"
main_deauth_profile_token
"6d99c8"

Response Cookies

No response cookies

Session

Session Metadata

No session metadata

Session Attributes

No session attributes

Session Usage

0 Usages
Stateless check enabled

Session not used.

Flashes

Flashes

No flash messages were created.

Server Parameters

Server Parameters

Defined in .env

Key Value
APP_ENV
"dev"
APP_SECRET
"12546b5e7b8f0effb89eb4b8ede355e1"
CORS_ALLOW_ORIGIN
"^https?://(localhost|127\.0\.0\.1)(:[0-9]+)?$"
DATABASE_OLD_DATA
""
DATABASE_URL
"mysql://stage_report_valtema_ch:vRB6GbxUVCr9jtJZ@127.0.0.1:3306/stage_report_valtema_ch"
DB_HOST
"127.0.0.1"
DB_NAME
"stage_report_valtema_ch"
DB_PASSWORD
"vRB6GbxUVCr9jtJZ"
DB_PORT
"3306"
DB_USER
"stage_report_valtema_ch"
JWT_PASSPHRASE
"ddb742e6ba4e3ae81508adb433473e4db9f00fbdcc1d1edd1047dc64c2eb8ec7"
JWT_PUBLIC_KEY
"%kernel.project_dir%/config/jwt/public.pem"
JWT_SECRET_KEY
"%kernel.project_dir%/config/jwt/private.pem"
MAILER_DSN
"smtp://mailcatcher.roothirsch.com:1025?encryption=&auth_mode=login&username=&password="
MAILER_URL
"smtp://mailcatcher.roothirsch.com:1025?encryption=&auth_mode=login&username=&password="
TRANSLATION_FILEPATH
""
WKHTMLTOIMAGE_PATH
"/usr/local/bin/wkhtmltoimage"
WKHTMLTOPDF_PATH
"/usr/local/bin/wkhtmltopdf"

Defined as regular env variables

Key Value
APP_DEBUG
"1"
CONTEXT_DOCUMENT_ROOT
"/var/www/stage.report.valtema.ch/public"
CONTEXT_PREFIX
""
DOCUMENT_ROOT
"/var/www/stage.report.valtema.ch/public"
FCGI_ROLE
"RESPONDER"
GATEWAY_INTERFACE
"CGI/1.1"
H2PUSH
"off"
H2_PUSH
"off"
H2_PUSHED
""
H2_PUSHED_ON
""
H2_STREAM_ID
"39"
H2_STREAM_TAG
"185000-7636-39"
HOME
"/var/www"
HTTP2
"on"
HTTPS
"on"
HTTP_ACCEPT
"application/json"
HTTP_ACCEPT_ENCODING
"gzip, deflate, br, zstd"
HTTP_ACCEPT_LANGUAGE
"en-US,en;q=0.9"
HTTP_AUTHORIZATION
"Bearer undefined"
HTTP_CACHE_CONTROL
"no-cache"
HTTP_COOKIE
"main_deauth_profile_token=6d99c8; PHPSESSID=bdpt33r78b7phf9gv6pd5jegos"
HTTP_HOST
"stage.report.valtema.ch"
HTTP_PRAGMA
"no-cache"
HTTP_PRIORITY
"u=1, i"
HTTP_REFERER
"https://stage.report.valtema.ch/login"
HTTP_SEC_CH_UA
""Chromium";v="154", "Google Chrome";v="154", "Not:A-Brand";v="24""
HTTP_SEC_CH_UA_MOBILE
"?0"
HTTP_SEC_CH_UA_PLATFORM
""Linux""
HTTP_SEC_FETCH_DEST
"empty"
HTTP_SEC_FETCH_MODE
"cors"
HTTP_SEC_FETCH_SITE
"same-origin"
HTTP_USER_AGENT
"Mozilla/5.0 (X11; Linux aarch64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/154.0.0.0 Safari/537.36"
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
PHP_SELF
"/index.php"
QUERY_STRING
""
REDIRECT_H2PUSH
"off"
REDIRECT_H2_PUSH
"off"
REDIRECT_H2_PUSHED
""
REDIRECT_H2_PUSHED_ON
""
REDIRECT_H2_STREAM_ID
"39"
REDIRECT_H2_STREAM_TAG
"185000-7636-39"
REDIRECT_HTTP2
"on"
REDIRECT_HTTPS
"on"
REDIRECT_HTTP_AUTHORIZATION
"Bearer undefined"
REDIRECT_SSL_TLS_SNI
"stage.report.valtema.ch"
REDIRECT_STATUS
"200"
REDIRECT_URL
"/api/users/current"
REMOTE_ADDR
"149.57.180.180"
REMOTE_PORT
"51860"
REQUEST_METHOD
"GET"
REQUEST_SCHEME
"https"
REQUEST_TIME
1792036638
REQUEST_TIME_FLOAT
1792036638.9834
REQUEST_URI
"/api/users/current"
SCRIPT_FILENAME
"/var/www/stage.report.valtema.ch/public/index.php"
SCRIPT_NAME
"/index.php"
SERVER_ADDR
"192.168.45.12"
SERVER_ADMIN
"informatik@brunex.ch"
SERVER_NAME
"stage.report.valtema.ch"
SERVER_PORT
"443"
SERVER_PROTOCOL
"HTTP/2.0"
SERVER_SIGNATURE
""
SERVER_SOFTWARE
"Apache"
SSL_TLS_SNI
"stage.report.valtema.ch"
SYMFONY_DOTENV_PATH
"/var/www/stage.report.valtema.ch/.env"
SYMFONY_DOTENV_VARS
"WKHTMLTOPDF_PATH,WKHTMLTOIMAGE_PATH,TRANSLATION_FILEPATH,APP_ENV,APP_SECRET,CORS_ALLOW_ORIGIN,DB_USER,DB_PASSWORD,DB_HOST,DB_PORT,DB_NAME,DATABASE_URL,DATABASE_OLD_DATA,MAILER_URL,MAILER_DSN,JWT_SECRET_KEY,JWT_PUBLIC_KEY,JWT_PASSPHRASE"
USER
"www-data"
proxy-nokeepalive
"1"