Error 401 Unauthorized

POST https://e-batiment.fji.ch/api/auth/refresh

Request / Response

Request

GET Parameters

None

POST Parameters

None

Uploaded Files

None

Request Attributes

Key Value
_firewall_context
"security.firewall.map.context.api"
_route
"api_auth_refresh"
_route_params
[]
_stopwatch_token
"f3bd6d"

Request Headers

Header Value
accept
"application/ld+json"
accept-encoding
"gzip, deflate, br, zstd"
accept-language
"fr,fr-FR;q=0.9,en-US;q=0.8,en;q=0.7"
content-length
"0"
cookie
"main_deauth_profile_token=97c69b; login_deauth_profile_token=963cec"
host
"e-batiment.fji.ch"
origin
"https://e-batiment.fji.ch"
referer
"https://e-batiment.fji.ch/connexion"
sec-fetch-dest
"empty"
sec-fetch-mode
"cors"
sec-fetch-site
"same-origin"
te
"trailers"
user-agent
"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:161.0) Gecko/20100101 Firefox/161.0"
x-forwarded-proto
"https"
x-php-ob-level
"1"
x-requested-with
"XMLHttpRequest"

Request Content

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

Retry Command

curl \
  --compressed \
  --request POST \
  --url 'https://e-batiment.fji.ch/api/auth/refresh' \
  --header 'X-Forwarded-Proto: https' \
  --header 'Te: trailers' \
  --header 'Content-Length: 0' \
  --header 'Sec-Fetch-Site: same-origin' \
  --header 'Sec-Fetch-Mode: cors' \
  --header 'Sec-Fetch-Dest: empty' \
  --header 'Origin: https://e-batiment.fji.ch' \
  --header 'X-Requested-With: XMLHttpRequest' \
  --header 'Referer: https://e-batiment.fji.ch/connexion' \
  --header 'Accept-Encoding: gzip, deflate, br, zstd' \
  --header 'Accept-Language: fr,fr-FR;q=0.9,en-US;q=0.8,en;q=0.7' \
  --header 'Accept: application/ld+json' \
  --header 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:161.0) Gecko/20100101 Firefox/161.0' \
  --header 'X-Php-Ob-Level: 1' \
  --cookie 'main_deauth_profile_token=97c69b; login_deauth_profile_token=963cec'

Response

Response Headers

Header Value
cache-control
"no-cache, private"
content-type
"application/json"
date
"Sun, 06 Dec 2026 15:59:31 GMT"
x-debug-token
"0433ea"
x-robots-tag
"noindex"

Cookies

Request Cookies

Key Value
login_deauth_profile_token
"963cec"
main_deauth_profile_token
"97c69b"

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_ENCRYPTION_KEY
"lrnjuBALhBIT35xlTJ042gMwM7/CUIgqzSikePsneCI="
APP_ENV
"dev"
APP_PUBLIC_URL
"https://localhost:8000"
APP_SECRET
"b60c37ca9fb0f16f9e03504b43dfdff8"
APP_SHARE_DIR
"var/share"
DATABASE_URL
"mysql://sc6s0_ebatiment:i2U%40V%24e%23Fz6.7@sc6s0.myd.infomaniak.com:3306/sc6s0_ebatiment?serverVersion=10.11.19-MariaDB&charset=utf8mb4"
DEFAULT_URI
"http://localhost"
DEFAULT_URL
"e-batiment.fji.ch"
JWT_PASSPHRASE
"163fbbb1424923a1ee8825c0be1a36f9c0ce31aea7503b4ccc067642eb4ee649"
JWT_PUBLIC_KEY
"%kernel.project_dir%/config/jwt/public.pem"
JWT_SECRET_KEY
"%kernel.project_dir%/config/jwt/private.pem"
JWT_TOKEN_TTL
"900"
LOCK_DSN
"flock"
MAILER_DSN
"smtp://no-reply@fajinfo.ch:6f%24ydIk%24PIE%2A%21P33@mail.infomaniak.com:587"
MAILER_FROM
"E-Bâtiment <no-reply@fajinfo.ch>"
MESSENGER_TRANSPORT_DSN
"doctrine://default?auto_setup=0"
PHOTO_RETENTION_DAYS
"730"
REFRESH_TOKEN_TTL
"604800"
STORAGE_DIR
"%kernel.project_dir%/var/storage"
TRUSTED_DEVICE_TTL
"2592000"

Defined as regular env variables

Key Value
APP_DEBUG
"1"
APP_PROJECT_DIR
"/home/clients/7013e9c520340d452787db41b1ef6905/sites/e-batiment.fji.ch"
APP_RUNTIME
"Symfony\Component\Runtime\SymfonyRuntime"
APP_RUNTIME_OPTIONS
[
  "project_dir" => "/home/clients/7013e9c520340d452787db41b1ef6905/sites/e-batiment.fji.ch"
]
CONTENT_LENGTH
"0"
CONTEXT_DOCUMENT_ROOT
"/home/clients/7013e9c520340d452787db41b1ef6905/sites/e-batiment.fji.ch/public"
CONTEXT_PREFIX
""
DOCUMENT_ROOT
"/home/clients/7013e9c520340d452787db41b1ef6905/sites/e-batiment.fji.ch/public"
FCGI_ROLE
"RESPONDER"
GATEWAY_INTERFACE
"CGI/1.1"
HOME
"/home/clients/7013e9c520340d452787db41b1ef6905"
HTTPS
"on"
HTTP_ACCEPT
"application/ld+json"
HTTP_ACCEPT_ENCODING
"gzip, deflate, br, zstd"
HTTP_ACCEPT_LANGUAGE
"fr,fr-FR;q=0.9,en-US;q=0.8,en;q=0.7"
HTTP_COOKIE
"main_deauth_profile_token=97c69b; login_deauth_profile_token=963cec"
HTTP_HOST
"e-batiment.fji.ch"
HTTP_ORIGIN
"https://e-batiment.fji.ch"
HTTP_REFERER
"https://e-batiment.fji.ch/connexion"
HTTP_SEC_FETCH_DEST
"empty"
HTTP_SEC_FETCH_MODE
"cors"
HTTP_SEC_FETCH_SITE
"same-origin"
HTTP_TE
"trailers"
HTTP_USER_AGENT
"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:161.0) Gecko/20100101 Firefox/161.0"
HTTP_X_FORWARDED_PROTO
"https"
HTTP_X_REQUESTED_WITH
"XMLHttpRequest"
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
PHP_SELF
"/index.php"
PHP_VERSION
"8.5"
QUERY_STRING
""
REDIRECT_HTTPS
"on"
REDIRECT_PHP_VERSION
"8.5"
REDIRECT_SCRIPT_URI
"https://e-batiment.fji.ch/api/auth/refresh"
REDIRECT_SCRIPT_URL
"/api/auth/refresh"
REDIRECT_SSL_TLS_SNI
"e-batiment.fji.ch"
REDIRECT_STATUS
"200"
REDIRECT_UNIQUE_ID
"axWGYwDzReLpameiHypurwAAAdc"
REDIRECT_URL
"/api/auth/refresh"
REMOTE_ADDR
"2a02:21b4:3615:c000:5ea:c2c3:3f8f:9f9"
REMOTE_PORT
"59292"
REQUEST_METHOD
"POST"
REQUEST_SCHEME
"https"
REQUEST_TIME
1796572771
REQUEST_TIME_FLOAT
1796572771.0367
REQUEST_URI
"/api/auth/refresh"
SCRIPT_FILENAME
"/home/clients/7013e9c520340d452787db41b1ef6905/sites/e-batiment.fji.ch/public/index.php"
SCRIPT_NAME
"/index.php"
SCRIPT_URI
"https://e-batiment.fji.ch/api/auth/refresh"
SCRIPT_URL
"/api/auth/refresh"
SERVER_ADDR
"127.0.0.80"
SERVER_ADMIN
"webmaster@fji.ch"
SERVER_NAME
"e-batiment.fji.ch"
SERVER_PORT
"443"
SERVER_PROTOCOL
"HTTP/1.1"
SERVER_SIGNATURE
""
SERVER_SOFTWARE
"Apache"
SSL_TLS_SNI
"e-batiment.fji.ch"
SYMFONY_DOTENV_PATH
"/home/clients/7013e9c520340d452787db41b1ef6905/sites/e-batiment.fji.ch/.env"
SYMFONY_DOTENV_VARS
"APP_ENV,APP_SECRET,APP_SHARE_DIR,DEFAULT_URI,DATABASE_URL,MESSENGER_TRANSPORT_DSN,MAILER_DSN,LOCK_DSN,JWT_SECRET_KEY,JWT_PUBLIC_KEY,JWT_PASSPHRASE,MAILER_FROM,JWT_TOKEN_TTL,REFRESH_TOKEN_TTL,TRUSTED_DEVICE_TTL,PHOTO_RETENTION_DAYS,STORAGE_DIR,APP_ENCRYPTION_KEY,APP_PUBLIC_URL,DEFAULT_URL"
TEMP
"/home/clients/7013e9c520340d452787db41b1ef6905/tmp"
TMP
"/home/clients/7013e9c520340d452787db41b1ef6905/tmp"
TMPDIR
"/home/clients/7013e9c520340d452787db41b1ef6905/tmp"
UNIQUE_ID
"axWGYwDzReLpameiHypurwAAAdc"
USER
"uid115213"