Security
Token
| Property | Value |
|---|---|
| Roles |
[ "ROLE_DISTRIBUTOR" "ROLE_USER" ] |
| Inherited Roles | none |
| Token | Symfony\Component\Security\Core\Authentication\Token\SwitchUserToken {#526 -user: App\Entity\User {#638 …} -roleNames: [ "ROLE_DISTRIBUTOR" "ROLE_USER" ] -attributes: [] -firewallName: "main" -originatedFromUri: "/api/switch-to-user" -originalToken: Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken {#533 …} } |
Firewall
main
Name
Security enabled
Stateless
Configuration
| Key | Value |
|---|---|
| provider | security.user.provider.concrete.app_user_provider |
| context | main |
| entry_point | App\Security\AuthenticationEntryPoint |
| user_checker | security.user_checker |
| access_denied_handler | App\Security\AccessDeniedHandler |
| access_denied_url | (none) |
| authenticators | [ "switch_user" "two_factor" "json_login" ] |
Listeners
| Listener | Duration | Response |
|---|---|---|
Symfony\Component\Security\Http\Firewall\ChannelListener {#134 -map: Symfony\Component\Security\Http\AccessMap {#136 …} -logger: Symfony\Component\HttpKernel\Log\Logger {#316 …} -httpPort: 80 -httpsPort: 443 } |
(none) | (none) |
Symfony\Component\Security\Http\Firewall\ContextListener {#80 -sessionKey: "_security_main" -registered: false -trustResolver: Scheb\TwoFactorBundle\Security\Authentication\AuthenticationTrustResolver {#121 …} -sessionTrackerEnabler: Symfony\Component\Security\Core\Authentication\Token\Storage\UsageTrackingTokenStorage::enableUsageTracking(): void {#99 …} -tokenStorage: Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage {#181 …} -userProviders: Symfony\Component\DependencyInjection\Argument\RewindableGenerator {#81 …} -logger: Symfony\Component\HttpKernel\Log\Logger {#316 …} -dispatcher: Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher {#27 …} } |
69.19 ms | (none) |
Symfony\Component\Security\Http\Firewall\AuthenticatorManagerListener {#504 -authenticatorManager: Symfony\Component\Security\Http\Authentication\AuthenticatorManager {#490 …} } |
(none) | (none) |
Symfony\Component\Security\Http\Firewall\SwitchUserListener {#498 -tokenStorage: Symfony\Component\Security\Core\Authentication\Token\Storage\UsageTrackingTokenStorage {#182 …} -provider: Symfony\Bridge\Doctrine\Security\User\EntityUserProvider {#465 …} -userChecker: Symfony\Component\Security\Core\User\InMemoryUserChecker {#501 …} -firewallName: "main" -accessDecisionManager: Symfony\Component\Security\Core\Authorization\TraceableAccessDecisionManager {#502 …} -logger: Symfony\Component\HttpKernel\Log\Logger {#316 …} -usernameParameter: "switch_to_user" -role: "ROLE_ALLOWED_TO_SWITCH" -dispatcher: Symfony\Component\HttpKernel\Debug\TraceableEventDispatcher {#287 …} -stateless: false -urlGenerator: Symfony\Bundle\FrameworkBundle\Routing\Router {#196 …} -targetRoute: "app_me" } |
(none) | (none) |
Scheb\TwoFactorBundle\Security\Http\Firewall\TwoFactorAccessListener {#464 -twoFactorFirewallConfig: Scheb\TwoFactorBundle\Security\TwoFactor\TwoFactorFirewallConfig {#228 …} -tokenStorage: Symfony\Component\Security\Core\Authentication\Token\Storage\UsageTrackingTokenStorage {#182 …} -twoFactorAccessDecider: Scheb\TwoFactorBundle\Security\Authorization\TwoFactorAccessDecider {#463 …} } |
0.25 ms | (none) |
Symfony\Component\Security\Http\Firewall\AccessListener {#460 -tokenStorage: Symfony\Component\Security\Core\Authentication\Token\Storage\UsageTrackingTokenStorage {#182 …} -accessDecisionManager: Symfony\Component\Security\Core\Authorization\TraceableAccessDecisionManager {#502 …} -map: Symfony\Component\Security\Http\AccessMap {#136 …} } |
3.41 ms | (none) |
Symfony\Component\Security\Http\Firewall\LogoutListener {#126 -options: [ "csrf_parameter" => "_csrf_token" "csrf_token_id" => "logout" "logout_path" => "api_logout" ] -tokenStorage: Symfony\Component\Security\Core\Authentication\Token\Storage\UsageTrackingTokenStorage {#182 …} -httpUtils: Symfony\Component\Security\Http\HttpUtils {#178 …} -eventDispatcher: Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher {#27 …} -csrfTokenManager: null } |
(none) | (none) |
Authenticators
| Status | Authenticator |
|---|---|
| skipped |
"Scheb\TwoFactorBundle\Security\Http\Authenticator\TwoFactorAuthenticator" This authenticator did not support the request. |
| skipped |
"Symfony\Component\Security\Http\Authenticator\JsonLoginAuthenticator" This authenticator did not support the request. |
Access Decision
affirmative
Strategy
| # | Voter class |
|---|---|
| 1 | "Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter" |
Access decision log
| # | Result | Attributes | Object | ||
|---|---|---|---|---|---|
| 1 | GRANTED | ROLE_DISTRIBUTOR | Symfony\Component\HttpFoundation\Request {#11 +attributes: Symfony\Component\HttpFoundation\ParameterBag {#63 …} +request: Symfony\Component\HttpFoundation\InputBag {#61 …} +query: Symfony\Component\HttpFoundation\InputBag {#62 …} +server: Symfony\Component\HttpFoundation\ServerBag {#66 …} +files: Symfony\Component\HttpFoundation\FileBag {#65 …} +cookies: Symfony\Component\HttpFoundation\InputBag {#64 …} +headers: Symfony\Component\HttpFoundation\HeaderBag {#67 …} #content: "" #languages: [ "es" ] #charsets: null #encodings: null #acceptableContentTypes: null #pathInfo: "/api/distributor/machine/58fe323f-7b9b-597d-8696-1c14598b8265" #requestUri: "/api/distributor/machine/58fe323f-7b9b-597d-8696-1c14598b8265" #baseUrl: "" #basePath: null #method: "GET" #format: null #session: Symfony\Component\HttpFoundation\Session\Session {#469 …} #locale: "es" #defaultLocale: "en" -preferredFormat: null -isHostValid: true -isForwardedValid: true -isSafeContentPreferred: ? bool -trustedValuesCache: [] -isIisRewrite: false : "" : "html" } |
||
|
|||||