Security

Firewall

api Name
Security enabled
Stateless

Configuration

Key Value
provider App\Security\UserProvider
context (none)
entry_point security.authenticator.jwt.api
user_checker App\Security\UserChecker
access_denied_handler (none)
access_denied_url (none)
authenticators
[
  "switch_user"
  "refresh_jwt"
  "jwt"
]

Token

01a24c11-ec47-7c5e-b89b-8b8b18680013 Username
Authenticated
Property Value
Roles
[
  "ROLE_BUILDING_MANAGER"
  "ROLE_CARETAKER"
  "ROLE_MUNICIPALITY_ADMIN"
  "ROLE_REQUESTER"
  "ROLE_SAFETY_OFFICER"
  "ROLE_USER"
]
Inherited Roles none
Available Roles
                                                graph TB
    ROLE_CARETAKER
    ROLE_REQUESTER
    ROLE_SAFETY_OFFICER
    ROLE_BUILDING_MANAGER
    ROLE_MUNICIPALITY_ADMIN
    ROLE_CARETAKER --> ROLE_REQUESTER
    ROLE_SAFETY_OFFICER --> ROLE_REQUESTER
    ROLE_BUILDING_MANAGER --> ROLE_CARETAKER
    ROLE_BUILDING_MANAGER --> ROLE_SAFETY_OFFICER
    ROLE_MUNICIPALITY_ADMIN --> ROLE_BUILDING_MANAGER
                                            
Token
Symfony\Component\Security\Core\Authentication\Token\SwitchUserToken {#733
  -user: App\Entity\User {#791 …}
  -roleNames: [
    "ROLE_BUILDING_MANAGER"
    "ROLE_CARETAKER"
    "ROLE_MUNICIPALITY_ADMIN"
    "ROLE_REQUESTER"
    "ROLE_SAFETY_OFFICER"
    "ROLE_USER"
  ]
  -attributes: []
  -firewallName: "api"
  -originatedFromUri: "/api/municipalities/01a24c10-f8fc-79fa-891a-95bce7160b7d"
  -originalToken: Lexik\Bundle\JWTAuthenticationBundle\Security\Authenticator\Token\JWTPostAuthenticationToken {#599 …}
}

Listeners

Listener Duration Response
"Symfony\Component\Security\Http\Firewall\AuthenticatorManagerListener"
20.96 ms (none)
"Symfony\Component\Security\Http\Firewall\SwitchUserListener"
392.51 ms (none)
"Symfony\Component\Security\Http\Firewall\LogoutListener"
(none) (none)
"Symfony\Component\Security\Http\Firewall\AccessListener"
0.04 ms (none)

Authenticators

Status Authenticator
skipped
"Gesdinet\JWTRefreshTokenBundle\Security\Http\Authenticator\RefreshTokenAuthenticator"

This authenticator did not support the request.

success
"Lexik\Bundle\JWTAuthenticationBundle\Security\Authenticator\JWTAuthenticator"
Lazy no
Duration 1.67 ms
Passport
Symfony\Component\Security\Http\Authenticator\Passport\SelfValidatingPassport {#511
  #user: App\Entity\User {#739 …}
  -badges: [
    "Symfony\Component\Security\Http\Authenticator\Passport\Badge\UserBadge" => Symfony\Component\Security\Http\Authenticator\Passport\Badge\UserBadge {#312
      -userLoader: Closure($userIdentifier) {#512 …}
      -user: App\Entity\User {#739 …}
      -identifierNormalizer: null
      -userIdentifier: "01a24c0a-f433-7a81-aa39-d17b35e075f8"
      -attributes: null
    }
  ]
  -attributes: [
    "payload" => [
      "iat" => 1796576134
      "exp" => 1796577034
      "jti" => "4a848edea032479fb871bf7104f6d96d"
      "uid" => "01a24c0a-f433-7a81-aa39-d17b35e075f8"
      "stamp" => "79842290c229896b3c2292129ffb6ea8"
    ]
    "token" => "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE3OTY1NzYxMzQsImV4cCI6MTc5NjU3NzAzNCwianRpIjoiNGE4NDhlZGVhMDMyNDc5ZmI4NzFiZjcxMDRmNmQ5NmQiLCJ1aWQiOiIwMWEyNGMwYS1mNDMzLTdhODEtYWEzOS1kMTdiMzVlMDc1ZjgiLCJzdGFtcCI6Ijc5ODQyMjkwYzIyOTg5NmIzYzIyOTIxMjlmZmI2ZWE4In0.hmei5y_sITa7v2PAcr200mD2ELOsvIoGi-WhX61hxOS38_li4Kea0Rt43J4vicSuNUQraU3EF-FUaSgSXpERtGuQZT-Jbv0rKuNt6QJKxmItwCRsghWytuvtdHy33YqbFUzQZ8yYE3xxyJyK_a3dnX40BDbLoyErCE8EoPdi8NZSm2DiFkh611Bx9Qmxw_JKw57fprvKJGY1a3WlQUuHVrnlAU9J1Wttzjh5PxquR-ck8Oj84E1h9NaJZ7dljHbEKI60wXnIi8fjL0cPXh0OgP1adQwA3BuHr1ehsTvgGA2hr6I3awmTwy5N_uWhFWo7XGzAGi_lbJZru8FRruu8Yw"
  ]
}
Badges UserBadge

Access Decision

affirmative Strategy
# Voter class
1
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
2
"App\Security\Impersonation\ImpersonationVoter"
3
"Symfony\Component\Security\Core\Authorization\Voter\AuthenticatedVoter"
4
"App\Security\Voter\MunicipalityVoter"

Access decision log

# Result Attributes Object
1 GRANTED ROLE_SUPER_ADMIN
null
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
GRANTED
The user has ROLE_SUPER_ADMIN.
Show voter details
2 GRANTED CAN_IMPERSONATE
App\Entity\User {#791 …}
"App\Security\Impersonation\ImpersonationVoter"
GRANTED
Show voter details
3 GRANTED IS_AUTHENTICATED_FULLY
Symfony\Component\HttpFoundation\Request {#81
  +attributes: Symfony\Component\HttpFoundation\ParameterBag {#78 …}
  +request: Symfony\Component\HttpFoundation\InputBag {#77 …}
  +query: Symfony\Component\HttpFoundation\InputBag {#80 …}
  +server: Symfony\Component\HttpFoundation\ServerBag {#52 …}
  +files: Symfony\Component\HttpFoundation\FileBag {#51 …}
  +cookies: Symfony\Component\HttpFoundation\InputBag {#23 …}
  +headers: Symfony\Component\HttpFoundation\HeaderBag {#53 …}
  #content: ""
  #languages: null
  #charsets: null
  #encodings: null
  #acceptableContentTypes: [
    "application/ld+json"
  ]
  #pathInfo: "/api/municipalities/01a24c10-f8fc-79fa-891a-95bce7160b7d"
  #requestUri: "/api/municipalities/01a24c10-f8fc-79fa-891a-95bce7160b7d"
  #baseUrl: ""
  #basePath: null
  #method: "GET"
  #format: "jsonld"
  #session: Closure() {#334 …}
  #locale: null
  #defaultLocale: "en"
  -preferredFormat: null
  -isHostValid: true
  -isForwardedValid: true
  -isSafeContentPreferred: ? bool
  -trustedValuesCache: []
  -isIisRewrite: false
  basePath: ""
}
"Symfony\Component\Security\Core\Authorization\Voter\AuthenticatedVoter"
GRANTED
The user is fully authenticated.
Show voter details
4 GRANTED MUNICIPALITY_VIEW
App\Entity\Municipality {#730
  -id: Symfony\Component\Uid\UuidV7 {#984 …}
  -name: "Commune de Collombey-Muraz"
  -street: "Rue des Dents-du-Midi 44"
  -postalCode: "1868"
  -city: "Collombey-Muraz"
  -requestNotificationEmail: null
  -billingEmail: null
  -generalEmail: null
  -isActive: true
  -createdAt: DateTimeImmutable @1796572510 {#970
    date: 2026-12-06 16:55:10.0 Europe/Zurich (+01:00)
  }
  -updatedAt: DateTimeImmutable @1796574029 {#64
    date: 2026-12-06 17:20:29.0 Europe/Zurich (+01:00)
  }
}
"App\Security\Impersonation\ImpersonationVoter"
ABSTAIN
"App\Security\Voter\MunicipalityVoter"
GRANTED
Show voter details