{"action":"created","issue":{"url":"https://api.github.com/repos/symfony/symfony/issues/20305","repository_url":"https://api.github.com/repos/symfony/symfony","labels_url":"https://api.github.com/repos/symfony/symfony/issues/20305/labels{/name}","comments_url":"https://api.github.com/repos/symfony/symfony/issues/20305/comments","events_url":"https://api.github.com/repos/symfony/symfony/issues/20305/events","html_url":"https://github.com/symfony/symfony/issues/20305","id":185335883,"number":20305,"title":"[Security] Guard authentication not triggering AUTHENTICATION_SUCCESS event","user":{"login":"sandermarechal","id":145240,"avatar_url":"https://avatars.githubusercontent.com/u/145240?v=3","gravatar_id":"","url":"https://api.github.com/users/sandermarechal","html_url":"https://github.com/sandermarechal","followers_url":"https://api.github.com/users/sandermarechal/followers","following_url":"https://api.github.com/users/sandermarechal/following{/other_user}","gists_url":"https://api.github.com/users/sandermarechal/gists{/gist_id}","starred_url":"https://api.github.com/users/sandermarechal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sandermarechal/subscriptions","organizations_url":"https://api.github.com/users/sandermarechal/orgs","repos_url":"https://api.github.com/users/sandermarechal/repos","events_url":"https://api.github.com/users/sandermarechal/events{/privacy}","received_events_url":"https://api.github.com/users/sandermarechal/received_events","type":"User","site_admin":false},"labels":[{"id":100079,"url":"https://api.github.com/repos/symfony/symfony/labels/Bug","name":"Bug","color":"e10c02","default":false},{"id":99600,"url":"https://api.github.com/repos/symfony/symfony/labels/Security","name":"Security","color":"DDDDDD","default":false},{"id":237003792,"url":"https://api.github.com/repos/symfony/symfony/labels/Status:%20Needs%20Review","name":"Status: Needs Review","color":"ededed","default":false},{"id":2932845,"url":"https://api.github.com/repos/symfony/symfony/labels/Unconfirmed","name":"Unconfirmed","color":"444444","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-10-26T09:05:46Z","updated_at":"2016-11-09T08:33:42Z","closed_at":null,"body":"I am authenticating users using a custom Guard authenticator. The authenticator itself is working fine. But after the authenticator has done its job, I expect the default [security events](http://symfony.com/doc/current/components/security/authentication.html#authentication-events) to trigger. Specifically, I am trying to listen to the `AUTHENTICATION_SUCCESS` event but it is never triggered.\n\nIt appears that this event is triggered by the `AuthenticationProviderManager`. This class is constructed, but the `authenticate` method is never called. I don't know why, since the `GuardAuthenticationProvider` is one of the providers managed by this class.\n\nFrom reading the documentation I would expect that Guard authenticators are managed just like any other security provider and thus should trigger the standard Symfony security events.\n"},"comment":{"url":"https://api.github.com/repos/symfony/symfony/issues/comments/259359076","html_url":"https://github.com/symfony/symfony/issues/20305#issuecomment-259359076","issue_url":"https://api.github.com/repos/symfony/symfony/issues/20305","id":259359076,"user":{"login":"sandermarechal","id":145240,"avatar_url":"https://avatars.githubusercontent.com/u/145240?v=3","gravatar_id":"","url":"https://api.github.com/users/sandermarechal","html_url":"https://github.com/sandermarechal","followers_url":"https://api.github.com/users/sandermarechal/followers","following_url":"https://api.github.com/users/sandermarechal/following{/other_user}","gists_url":"https://api.github.com/users/sandermarechal/gists{/gist_id}","starred_url":"https://api.github.com/users/sandermarechal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sandermarechal/subscriptions","organizations_url":"https://api.github.com/users/sandermarechal/orgs","repos_url":"https://api.github.com/users/sandermarechal/repos","events_url":"https://api.github.com/users/sandermarechal/events{/privacy}","received_events_url":"https://api.github.com/users/sandermarechal/received_events","type":"User","site_admin":false},"created_at":"2016-11-09T08:33:42Z","updated_at":"2016-11-09T08:33:42Z","body":"It could be that the docs aren't correct anymore. Should `AuthenticationEvents::AUTHENTICATION_SUCCESS` fire on every request or not?"}}
{"actor":{"display_login":"sandermarechal"}}