diff --git a/.gitignore b/.gitignore index 4fbb073..94640f4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /vendor/ /composer.lock +.idea/ \ No newline at end of file diff --git a/Event/CASAuthenticationFailureEvent.php b/Event/CASAuthenticationFailureEvent.php index 7d40b6b..76b626a 100644 --- a/Event/CASAuthenticationFailureEvent.php +++ b/Event/CASAuthenticationFailureEvent.php @@ -5,8 +5,7 @@ use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Security\Core\Exception\AuthenticationException; -use Symfony\Component\EventDispatcher\Event; - +use Symfony\Contracts\EventDispatcher\Event; class CASAuthenticationFailureEvent extends Event { diff --git a/Security/CasAuthenticator.php b/Security/CasAuthenticator.php index 2734d96..c3c3aca 100644 --- a/Security/CasAuthenticator.php +++ b/Security/CasAuthenticator.php @@ -137,7 +137,7 @@ public function onAuthenticationFailure(Request $request, AuthenticationExceptio $def_response = new JsonResponse($data, 403); $event = new CASAuthenticationFailureEvent($request,$exception, $def_response); - $this->eventDispatcher->dispatch(CASAuthenticationFailureEvent::POST_MESSAGE, $event); + $this->eventDispatcher->dispatch($event); return $event->getResponse(); } diff --git a/composer.json b/composer.json index bc5af62..a531ac2 100644 --- a/composer.json +++ b/composer.json @@ -1,8 +1,8 @@ { - "name": "prayno/casauth-bundle", + "name": "edditor/casauth-bundle", "type": "symfony-bundle", - "description": "Basic CAS (SSO) authenticator for Symfony 3, 4 and 5", - "keywords": ["PRayno", "CAS", "SSO", "Symfony 3", "Guard", "Symfony 4", "Symfony 5"], + "description": "Basic CAS (SSO) authenticator for Symfony 4 and 5", + "keywords": ["PRayno", "CAS", "SSO", "Guard", "Symfony 4", "Symfony 5"], "license": "MIT", "authors": [ { @@ -11,12 +11,12 @@ } ], "require": { - "symfony/config": "^3.0|^4.0|^5.0", - "symfony/dependency-injection": "^3.0|^4.0|^5.0", - "symfony/http-foundation": "^3.0|^4.0|^5.0", - "symfony/http-kernel": "^3.0|^4.0|^5.0", - "symfony/security-bundle": "^3.0|^4.0|^5.0", - "guzzlehttp/guzzle": "^6.2" + "symfony/config": "^4.0|^5.0", + "symfony/dependency-injection": "^4.0|^5.0", + "symfony/http-foundation": "^4.0|^5.0", + "symfony/http-kernel": "^4.0|^5.0", + "symfony/security-bundle": "^4.0|^5.0", + "guzzlehttp/guzzle": "^6.2|^7" }, "autoload": { "psr-0": { "PRayno\\CasAuthBundle": "" }