Add AuthenticationTokenCreatedEvent to be propagated

This commit is contained in:
Christian Scheb 2020-12-26 12:45:17 +01:00
parent 68c6027a21
commit 68aaf4f916
2 changed files with 4 additions and 0 deletions

View File

@ -15,6 +15,7 @@ use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\Security\Core\AuthenticationEvents;
use Symfony\Component\Security\Core\Event\AuthenticationSuccessEvent;
use Symfony\Component\Security\Http\Event\AuthenticationTokenCreatedEvent;
use Symfony\Component\Security\Http\Event\CheckPassportEvent;
use Symfony\Component\Security\Http\Event\InteractiveLoginEvent;
use Symfony\Component\Security\Http\Event\LoginFailureEvent;
@ -40,6 +41,7 @@ class RegisterGlobalSecurityEventListenersPass implements CompilerPassInterface
LoginFailureEvent::class,
LoginSuccessEvent::class,
LogoutEvent::class,
AuthenticationTokenCreatedEvent::class,
AuthenticationSuccessEvent::class,
InteractiveLoginEvent::class,

View File

@ -21,6 +21,7 @@ use Symfony\Component\EventDispatcher\EventDispatcher;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\Security\Core\AuthenticationEvents;
use Symfony\Component\Security\Core\Event\AuthenticationSuccessEvent;
use Symfony\Component\Security\Http\Event\AuthenticationTokenCreatedEvent;
use Symfony\Component\Security\Http\Event\CheckPassportEvent;
use Symfony\Component\Security\Http\Event\InteractiveLoginEvent;
use Symfony\Component\Security\Http\Event\LoginFailureEvent;
@ -76,6 +77,7 @@ class RegisterGlobalSecurityEventListenersPassTest extends TestCase
[LoginFailureEvent::class, LoginFailureEvent::class],
[LoginSuccessEvent::class, LoginSuccessEvent::class],
[LogoutEvent::class, LogoutEvent::class],
[AuthenticationTokenCreatedEvent::class, AuthenticationTokenCreatedEvent::class],
[AuthenticationEvents::AUTHENTICATION_SUCCESS, AuthenticationEvents::AUTHENTICATION_SUCCESS],
[SecurityEvents::INTERACTIVE_LOGIN, SecurityEvents::INTERACTIVE_LOGIN],