Skip to content

Instantly share code, notes, and snippets.

@crmpicco
Created October 29, 2018 05:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save crmpicco/a927716570a4949caafec4ca1361bf63 to your computer and use it in GitHub Desktop.
Save crmpicco/a927716570a4949caafec4ca1361bf63 to your computer and use it in GitHub Desktop.
Failed assertion on PreAuthenticatedToken
Failed asserting that Symfony\Component\VarDumper\Cloner\Data Object &000000007bbb78b60000000050f520a2 (
'data' => Array &0 (
0 => Array &1 (
0 => Array &2 (
1 => 1
)
)
1 => Array &3 (
'enabled' => true
'authenticated' => true
'impersonated' => false
'impersonator_user' => null
'impersonation_exit_path' => null
'token' => Symfony\Component\VarDumper\Cloner\Stub Object &000000007bbb649c0000000050f520a2 (
'type' => 4
'class' => 'Symfony\Component\Security\Core\Authentication\Token\AnonymousToken'
'value' => null
'cut' => 0
'handle' => 1176
'refCount' => 0
'position' => 2
'attr' => Array &4 ()
)
'token_class' => Symfony\Component\VarDumper\Cloner\Stub Object &000000007bbb64a50000000050f520a2 (
'type' => 1
'class' => ''
'value' => 'Symfony\Component\Security\Core\Authentication\Token\AnonymousToken'
'cut' => 0
'handle' => 0
'refCount' => 0
'position' => 0
'attr' => Array &5 (
'ellipsis' => 15
'ellipsis-type' => 'class'
'ellipsis-tail' => 1
'file' => '/private/var/www/crmpicco/symfony/vendor/symfony/symfony/src/Symfony/Component/Security/Core/Authentication/Token/AnonymousToken.php'
'line' => 21
)
)
'logout_url' => null
'user' => 'anon.'
'roles' => Array &6 ()
'inherited_roles' => Array &7 ()
'supports_role_hierarchy' => true
'access_decision_log' => Array &8 (
2 => 3
)
'voter_strategy' => 'affirmative'
'voters' => Array &9 (
2 => 4
)
'firewall' => Array &10 (
1 => 5
)
'listeners' => Array &11 (
2 => 6
)
)
2 => Array &12 (
Binary String: 0x0053796d666f6e795c436f6d706f6e656e745c53656375726974795c436f72655c41757468656e7469636174696f6e5c546f6b656e5c416e6f6e796d6f7573546f6b656e00736563726574 => 'Y0kceet'
Binary String: 0x0053796d666f6e795c436f6d706f6e656e745c53656375726974795c436f72655c41757468656e7469636174696f6e5c546f6b656e5c4162737472616374546f6b656e0075736572 => 'anon.'
Binary String: 0x0053796d666f6e795c436f6d706f6e656e745c53656375726974795c436f72655c41757468656e7469636174696f6e5c546f6b656e5c4162737472616374546f6b656e00726f6c6573 => Array &13 ()
Binary String: 0x0053796d666f6e795c436f6d706f6e656e745c53656375726974795c436f72655c41757468656e7469636174696f6e5c546f6b656e5c4162737472616374546f6b656e0061757468656e74696361746564 => true
Binary String: 0x0053796d666f6e795c436f6d706f6e656e745c53656375726974795c436f72655c41757468656e7469636174696f6e5c546f6b656e5c4162737472616374546f6b656e0061747472696275746573 => Array &14 ()
)
3 => Array &15 (
0 => Array &16 (
1 => 7
)
1 => Array &17 (
1 => 8
)
)
4 => Array &18 (
0 => Symfony\Component\VarDumper\Cloner\Stub Object &000000007bbb67770000000050f520a2 (
'type' => 1
'class' => ''
'value' => 'Symfony\Component\Security\Core\Authorization\Voter\AuthenticatedVoter'
'cut' => 0
'handle' => 0
'refCount' => 0
'position' => 0
'attr' => Array &19 (
'ellipsis' => 19
'ellipsis-type' => 'class'
'ellipsis-tail' => 1
'file' => '/private/var/www/crmpicco/symfony/vendor/symfony/symfony/src/Symfony/Component/Security/Core/Authorization/Voter/AuthenticatedVoter.php'
'line' => 26
)
)
1 => Symfony\Component\VarDumper\Cloner\Stub Object &000000007bbb64a40000000050f520a2 (
'type' => 1
'class' => ''
'value' => 'Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter'
'cut' => 0
'handle' => 0
'refCount' => 0
'position' => 0
'attr' => Array &20 (
'ellipsis' => 19
'ellipsis-type' => 'class'
'ellipsis-tail' => 1
'file' => '/private/var/www/crmpicco/symfony/vendor/symfony/symfony/src/Symfony/Component/Security/Core/Authorization/Voter/RoleHierarchyVoter.php'
'line' => 23
)
)
2 => Symfony\Component\VarDumper\Cloner\Stub Object &000000007bbb64a20000000050f520a2 (
'type' => 1
'class' => ''
'value' => 'Symfony\Component\Security\Core\Authorization\Voter\ExpressionVoter'
'cut' => 0
'handle' => 0
'refCount' => 0
'position' => 0
'attr' => Array &21 (
'ellipsis' => 16
'ellipsis-type' => 'class'
'ellipsis-tail' => 1
'file' => '/private/var/www/crmpicco/symfony/vendor/symfony/symfony/src/Symfony/Component/Security/Core/Authorization/Voter/ExpressionVoter.php'
'line' => 27
)
)
3 => Symfony\Component\VarDumper\Cloner\Stub Object &000000007bbb64b70000000050f520a2 (
'type' => 1
'class' => ''
'value' => 'AppBundle\Security\Authorization\Voter\SiteVoter'
'cut' => 0
'handle' => 0
'refCount' => 0
'position' => 0
'attr' => Array &22 (
'ellipsis' => 10
'ellipsis-type' => 'class'
'ellipsis-tail' => 1
'file' => '/private/var/www/crmpicco/symfony/src/AppBundle/Security/Authorization/Voter/SiteVoter.php'
'line' => 11
)
)
)
5 => Array &23 (
'name' => 'default'
'allows_anonymous' => true
'request_matcher' => null
'security_enabled' => true
'stateless' => false
'provider' => null
'context' => 'default'
'entry_point' => 'security.authentication.form_entry_point.default'
'access_denied_handler' => null
'access_denied_url' => null
'user_checker' => 'security.user_checker'
'listeners' => Array &24 (
2 => 9
)
)
6 => Array &25 (
0 => Array &26 (
1 => 10
)
1 => Array &27 (
1 => 11
)
2 => Array &28 (
1 => 12
)
3 => Array &29 (
1 => 13
)
4 => Array &30 (
1 => 14
)
5 => Array &31 (
1 => 15
)
6 => Array &32 (
1 => 16
)
)
7 => Array &33 (
'attributes' => Array &34 (
2 => 17
)
'object' => Symfony\Component\VarDumper\Cloner\Stub Object &000000007bbb64b00000000050f520a2 (
'type' => 4
'class' => 'Symfony\Component\HttpFoundation\Request'
'value' => null
'cut' => 0
'handle' => 4744
'refCount' => 0
'position' => 18
'attr' => Array &35 ()
)
'result' => true
)
8 => Array &36 (
'attributes' => Array &37 (
2 => 19
)
'object' => null
'result' => false
)
9 => Array &38 (
0 => 'simple_preauth'
1 => 'form_login'
2 => 'anonymous'
)
10 => Array &39 (
'response' => null
'time' => 0.00010704994201660156
'stub' => Symfony\Component\VarDumper\Cloner\Stub Object &000000007bbb64b40000000050f520a2 (
'type' => 1
'class' => ''
'value' => 'Symfony\Component\Security\Http\Firewall\ChannelListener'
'cut' => 0
'handle' => 0
'refCount' => 0
'position' => 0
'attr' => Array &40 (
'ellipsis' => 16
'ellipsis-type' => 'class'
'ellipsis-tail' => 1
'file' => '/private/var/www/crmpicco/symfony/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/ChannelListener.php'
'line' => 25
)
)
)
11 => Array &41 (
'response' => null
'time' => 8.106231689453125E-6
'stub' => Symfony\Component\VarDumper\Cloner\Stub Object &000000007bbb64ba0000000050f520a2 (
'type' => 1
'class' => ''
'value' => 'Symfony\Component\Security\Http\Firewall\ContextListener'
'cut' => 0
'handle' => 0
'refCount' => 0
'position' => 0
'attr' => Array &42 (
'ellipsis' => 16
'ellipsis-type' => 'class'
'ellipsis-tail' => 1
'file' => '/private/var/www/crmpicco/symfony/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/ContextListener.php'
'line' => 37
)
)
)
12 => Array &43 (
'response' => null
'time' => 0.03772616386413574
'stub' => Symfony\Component\VarDumper\Cloner\Stub Object &000000007bbb64bb0000000050f520a2 (
'type' => 1
'class' => ''
'value' => 'Symfony\Component\Security\Http\Firewall\SimplePreAuthenticationListener'
'cut' => 0
'handle' => 0
'refCount' => 0
'position' => 0
'attr' => Array &44 (
'ellipsis' => 32
'ellipsis-type' => 'class'
'ellipsis-tail' => 1
'file' => '/private/var/www/crmpicco/symfony/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/SimplePreAuthenticationListener.php'
'line' => 36
)
)
)
13 => Array &45 (
'response' => null
'time' => 6.198883056640625E-6
'stub' => Symfony\Component\VarDumper\Cloner\Stub Object &000000007bbb64b80000000050f520a2 (
'type' => 1
'class' => ''
'value' => 'Symfony\Component\Security\Http\Firewall\UsernamePasswordFormAuthenticationListener'
'cut' => 0
'handle' => 0
'refCount' => 0
'position' => 0
'attr' => Array &46 (
'ellipsis' => 43
'ellipsis-type' => 'class'
'ellipsis-tail' => 1
'file' => '/private/var/www/crmpicco/symfony/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/UsernamePasswordFormAuthenticationListener.php'
'line' => 38
)
)
)
14 => Array &47 (
'response' => null
'time' => 0.00015306472778320312
'stub' => Symfony\Component\VarDumper\Cloner\Stub Object &000000007bbb649a0000000050f520a2 (
'type' => 1
'class' => ''
'value' => 'Symfony\Component\Security\Http\Firewall\AnonymousAuthenticationListener'
'cut' => 0
'handle' => 0
'refCount' => 0
'position' => 0
'attr' => Array &48 (
'ellipsis' => 32
'ellipsis-type' => 'class'
'ellipsis-tail' => 1
'file' => '/private/var/www/crmpicco/symfony/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/AnonymousAuthenticationListener.php'
'line' => 27
)
)
)
15 => Array &49 (
'response' => null
'time' => 5.507469177246094E-5
'stub' => Symfony\Component\VarDumper\Cloner\Stub Object &000000007bbb64980000000050f520a2 (
'type' => 1
'class' => ''
'value' => 'Symfony\Component\Security\Http\Firewall\LogoutListener'
'cut' => 0
'handle' => 0
'refCount' => 0
'position' => 0
'attr' => Array &50 (
'ellipsis' => 15
'ellipsis-type' => 'class'
'ellipsis-tail' => 1
'file' => '/private/var/www/crmpicco/symfony/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/LogoutListener.php'
'line' => 31
)
)
)
16 => Array &51 (
'response' => null
'time' => 0.00010013580322265625
'stub' => Symfony\Component\VarDumper\Cloner\Stub Object &000000007bbb649b0000000050f520a2 (
'type' => 1
'class' => ''
'value' => 'Symfony\Component\Security\Http\Firewall\AccessListener'
'cut' => 0
'handle' => 0
'refCount' => 0
'position' => 0
'attr' => Array &52 (
'ellipsis' => 15
'ellipsis-type' => 'class'
'ellipsis-tail' => 1
'file' => '/private/var/www/crmpicco/symfony/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/AccessListener.php'
'line' => 27
)
)
)
17 => Array &53 (
0 => 'IS_AUTHENTICATED_ANONYMOUSLY'
)
18 => Array &54 (
'attributes' => Symfony\Component\VarDumper\Cloner\Stub Object &000000007bbb64970000000050f520a2 (
'type' => 4
'class' => 'Symfony\Component\HttpFoundation\ParameterBag'
'value' => null
'cut' => -1
'handle' => 4420
'refCount' => 0
'position' => 0
'attr' => Array &55 ()
)
'request' => Symfony\Component\VarDumper\Cloner\Stub Object &000000007bbb64940000000050f520a2 (
'type' => 4
'class' => 'Symfony\Component\HttpFoundation\ParameterBag'
'value' => null
'cut' => -1
'handle' => 4812
'refCount' => 0
'position' => 0
'attr' => Array &56 ()
)
'query' => Symfony\Component\VarDumper\Cloner\Stub Object &000000007bbb64950000000050f520a2 (
'type' => 4
'class' => 'Symfony\Component\HttpFoundation\ParameterBag'
'value' => null
'cut' => -1
'handle' => 3381
'refCount' => 0
'position' => 0
'attr' => Array &57 ()
)
'server' => Symfony\Component\VarDumper\Cloner\Stub Object &000000007bbb677e0000000050f520a2 (
'type' => 4
'class' => 'Symfony\Component\HttpFoundation\ServerBag'
'value' => null
'cut' => -1
'handle' => 7841
'refCount' => 0
'position' => 0
'attr' => Array &58 ()
)
'files' => Symfony\Component\VarDumper\Cloner\Stub Object &000000007bbb67730000000050f520a2 (
'type' => 4
'class' => 'Symfony\Component\HttpFoundation\FileBag'
'value' => null
'cut' => -1
'handle' => 4705
'refCount' => 0
'position' => 0
'attr' => Array &59 ()
)
'cookies' => Symfony\Component\VarDumper\Cloner\Stub Object &000000007bbb64880000000050f520a2 (
'type' => 4
'class' => 'Symfony\Component\HttpFoundation\ParameterBag'
'value' => null
'cut' => -1
'handle' => 4825
'refCount' => 0
'position' => 0
'attr' => Array &60 ()
)
'headers' => Symfony\Component\VarDumper\Cloner\Stub Object &000000007bbb64b60000000050f520a2 (
'type' => 4
'class' => 'Symfony\Component\HttpFoundation\HeaderBag'
'value' => null
'cut' => -1
'handle' => 3178
'refCount' => 0
'position' => 0
'attr' => Array &61 ()
)
Binary String: 0x002a00636f6e74656e74 => ''
Binary String: 0x002a006c616e677561676573 => null
Binary String: 0x002a006368617273657473 => null
Binary String: 0x002a00656e636f64696e6773 => null
Binary String: 0x002a0061636365707461626c65436f6e74656e745479706573 => null
Binary String: 0x002a0070617468496e666f => '/en/portal/view/testsite'
Binary String: 0x002a0072657175657374557269 => '/en/portal/view/testsite?loginToken=AAAAAAAAAAe9Og%2BWg2iz1JHNj8KQ1RwUinvalid'
Binary String: 0x002a006261736555726c => ''
Binary String: 0x002a006261736550617468 => null
Binary String: 0x002a006d6574686f64 => 'GET'
Binary String: 0x002a00666f726d6174 => null
Binary String: 0x002a0073657373696f6e => Symfony\Component\VarDumper\Cloner\Stub Object &000000007bbb64860000000050f520a2 (
'type' => 4
'class' => 'Symfony\Component\HttpFoundation\Session\Session'
'value' => null
'cut' => -1
'handle' => 7158
'refCount' => 0
'position' => 0
'attr' => Array &62 ()
)
Binary String: 0x002a006c6f63616c65 => 'en'
Binary String: 0x002a0064656661756c744c6f63616c65 => 'en'
Binary String: 0x0053796d666f6e795c436f6d706f6e656e745c48747470466f756e646174696f6e5c52657175657374006973486f737456616c6964 => true
Binary String: 0x0053796d666f6e795c436f6d706f6e656e745c48747470466f756e646174696f6e5c52657175657374006973466f7277617264656456616c6964 => true
Binary String: 0x007e006261736550617468 => ''
Binary String: 0x007e00666f726d6174 => 'html'
)
19 => Array &63 (
0 => 'IS_AUTHENTICATED_FULLY'
)
)
'position' => 1
'key' => 'token_class'
'maxDepth' => 20
'maxItemsPerDepth' => -1
'useRefHandles' => -1
) matches expected 'Symfony\Component\Security\Core\Authentication\Token\PreAuthenticatedToken'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment