{"action":"created","issue":{"url":"https://api.github.com/repos/scheb/two-factor-bundle/issues/62","repository_url":"https://api.github.com/repos/scheb/two-factor-bundle","labels_url":"https://api.github.com/repos/scheb/two-factor-bundle/issues/62/labels{/name}","comments_url":"https://api.github.com/repos/scheb/two-factor-bundle/issues/62/comments","events_url":"https://api.github.com/repos/scheb/two-factor-bundle/issues/62/events","html_url":"https://github.com/scheb/two-factor-bundle/issues/62","id":169041750,"number":62,"title":"Voter causes an infinite redirect for non-UsernamePasswordToken tokens","user":{"login":"zerkms","id":302295,"avatar_url":"https://avatars.githubusercontent.com/u/302295?v=3","gravatar_id":"","url":"https://api.github.com/users/zerkms","html_url":"https://github.com/zerkms","followers_url":"https://api.github.com/users/zerkms/followers","following_url":"https://api.github.com/users/zerkms/following{/other_user}","gists_url":"https://api.github.com/users/zerkms/gists{/gist_id}","starred_url":"https://api.github.com/users/zerkms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zerkms/subscriptions","organizations_url":"https://api.github.com/users/zerkms/orgs","repos_url":"https://api.github.com/users/zerkms/repos","events_url":"https://api.github.com/users/zerkms/events{/privacy}","received_events_url":"https://api.github.com/users/zerkms/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2016-08-03T03:50:08Z","updated_at":"2016-08-08T11:03:43Z","closed_at":null,"body":"If you configure a project with `RememberMeToken` then when user is re-authenticated using the `RememberMe` cookie - voter's `return VoterInterface::ACCESS_DENIED;` turn the authentication process into an infinite loop.\r\n\r\nIt happens because:\r\n\r\n1. `RememberMe` listener authenticates a user\r\n2. On voter returns `ACCESS_DENIED`\r\n3. Symfony's `Symfony\\Component\\Security\\Http\\Firewall\\ExceptionListener` exception handler checks the user is not fully authenticated and performs a redirect (through `Symfony\\Component\\Security\\Http\\EntryPoint\\FormAuthenticationEntryPoint::start()`\r\n4. Go to step 2\r\n\r\nTemporary solution: disable Voter\r\n\r\nPermanent solution: the Voter implementation (and presence at all) should be reconsidered."},"comment":{"url":"https://api.github.com/repos/scheb/two-factor-bundle/issues/comments/238205426","html_url":"https://github.com/scheb/two-factor-bundle/issues/62#issuecomment-238205426","issue_url":"https://api.github.com/repos/scheb/two-factor-bundle/issues/62","id":238205426,"user":{"login":"umpirsky","id":208957,"avatar_url":"https://avatars.githubusercontent.com/u/208957?v=3","gravatar_id":"","url":"https://api.github.com/users/umpirsky","html_url":"https://github.com/umpirsky","followers_url":"https://api.github.com/users/umpirsky/followers","following_url":"https://api.github.com/users/umpirsky/following{/other_user}","gists_url":"https://api.github.com/users/umpirsky/gists{/gist_id}","starred_url":"https://api.github.com/users/umpirsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/umpirsky/subscriptions","organizations_url":"https://api.github.com/users/umpirsky/orgs","repos_url":"https://api.github.com/users/umpirsky/repos","events_url":"https://api.github.com/users/umpirsky/events{/privacy}","received_events_url":"https://api.github.com/users/umpirsky/received_events","type":"User","site_admin":false},"created_at":"2016-08-08T11:03:43Z","updated_at":"2016-08-08T11:03:43Z","body":"@zerkms Reproduced. Does same happens after successful 2FA auth?"}}
{"actor":{"display_login":"umpirsky"}}