From 9543deb59920db91a219c3ac010b9e80e9ee9d72 Mon Sep 17 00:00:00 2001 From: Michiel Kodde Date: Wed, 27 Jun 2018 13:41:18 +0200 Subject: [PATCH 1/2] Import the AccessDeniedException --- .../RaBundle/Security/Authentication/Provider/SamlProvider.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Surfnet/StepupRa/RaBundle/Security/Authentication/Provider/SamlProvider.php b/src/Surfnet/StepupRa/RaBundle/Security/Authentication/Provider/SamlProvider.php index ae085754..a30102cc 100644 --- a/src/Surfnet/StepupRa/RaBundle/Security/Authentication/Provider/SamlProvider.php +++ b/src/Surfnet/StepupRa/RaBundle/Security/Authentication/Provider/SamlProvider.php @@ -30,6 +30,7 @@ use Surfnet\StepupRa\RaBundle\Service\InstitutionConfigurationOptionsService; use Symfony\Component\Security\Core\Authentication\Provider\AuthenticationProviderInterface; use Symfony\Component\Security\Core\Authentication\Token\TokenInterface; +use Symfony\Component\Security\Core\Exception\AccessDeniedException; use Symfony\Component\Security\Core\Exception\BadCredentialsException; class SamlProvider implements AuthenticationProviderInterface From b5f6b294035a1dfcd900ba1a610f3c2c266dd6f6 Mon Sep 17 00:00:00 2001 From: Michiel Kodde Date: Wed, 27 Jun 2018 13:41:38 +0200 Subject: [PATCH 2/2] Clean up unused imports --- .../RaBundle/Security/Authentication/Provider/SamlProvider.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Surfnet/StepupRa/RaBundle/Security/Authentication/Provider/SamlProvider.php b/src/Surfnet/StepupRa/RaBundle/Security/Authentication/Provider/SamlProvider.php index a30102cc..6e9587fc 100644 --- a/src/Surfnet/StepupRa/RaBundle/Security/Authentication/Provider/SamlProvider.php +++ b/src/Surfnet/StepupRa/RaBundle/Security/Authentication/Provider/SamlProvider.php @@ -21,10 +21,8 @@ use Psr\Log\LoggerInterface; use Surfnet\SamlBundle\SAML2\Attribute\AttributeDictionary; use Surfnet\SamlBundle\SAML2\Response\AssertionAdapter; -use Surfnet\StepupRa\RaBundle\Assert; use Surfnet\StepupRa\RaBundle\Exception\InconsistentStateException; use Surfnet\StepupRa\RaBundle\Exception\MissingRequiredAttributeException; -use Surfnet\StepupRa\RaBundle\Exception\UserNotRaException; use Surfnet\StepupRa\RaBundle\Security\Authentication\Token\SamlToken; use Surfnet\StepupRa\RaBundle\Service\IdentityService; use Surfnet\StepupRa\RaBundle\Service\InstitutionConfigurationOptionsService;