@@ -61,7 +61,7 @@ |
||
| 61 | 61 | * @throws \RuntimeException |
| 62 | 62 | * @throws \Symfony\Component\Security\Core\Exception\AuthenticationException |
| 63 | 63 | * @throws \InvalidArgumentException if cannot manage the Request |
| 64 | - * @return \Symfony\Component\HttpFoundation\RedirectResponse|SamlSpInfo |
|
| 64 | + * @return SamlSpInfo |
|
| 65 | 65 | */ |
| 66 | 66 | public function manage(Request $request) |
| 67 | 67 | { |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace AerialShip\SamlSPBundle\Bridge; |
| 4 | 4 | |
| 5 | -use AerialShip\LightSaml\Binding\HttpRedirect; |
|
| 6 | 5 | use AerialShip\LightSaml\Meta\AuthnRequestBuilder; |
| 7 | 6 | use AerialShip\SamlSPBundle\Config\ServiceInfoCollection; |
| 8 | 7 | use AerialShip\SamlSPBundle\RelyingParty\RelyingPartyInterface; |
@@ -69,7 +69,7 @@ |
||
| 69 | 69 | * @param \Symfony\Component\HttpFoundation\Request $request |
| 70 | 70 | * @throws \RuntimeException if no signing provider set |
| 71 | 71 | * @throws \InvalidArgumentException if cannot manage the Request |
| 72 | - * @return \Symfony\Component\HttpFoundation\Response|SamlSpInfo |
|
| 72 | + * @return Response |
|
| 73 | 73 | */ |
| 74 | 74 | function manage(Request $request) |
| 75 | 75 | { |
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | * @param \Symfony\Component\HttpFoundation\Request $request |
| 71 | 71 | * @throws \RuntimeException |
| 72 | 72 | * @throws \InvalidArgumentException if cannot manage the Request |
| 73 | - * @return \Symfony\Component\HttpFoundation\Response|SamlSpInfo|null |
|
| 73 | + * @return \Symfony\Component\HttpFoundation\RedirectResponse |
|
| 74 | 74 | */ |
| 75 | 75 | public function manage(Request $request) |
| 76 | 76 | { |
@@ -69,7 +69,7 @@ |
||
| 69 | 69 | * @param \Symfony\Component\HttpFoundation\Request $request |
| 70 | 70 | * @throws \RuntimeException if no signing provider set |
| 71 | 71 | * @throws \InvalidArgumentException if cannot manage the Request |
| 72 | - * @return \Symfony\Component\HttpFoundation\Response|SamlSpInfo |
|
| 72 | + * @return Response |
|
| 73 | 73 | */ |
| 74 | 74 | function manage(Request $request) |
| 75 | 75 | { |
@@ -42,6 +42,11 @@ |
||
| 42 | 42 | |
| 43 | 43 | |
| 44 | 44 | |
| 45 | + /** |
|
| 46 | + * @param string $authenticationServiceID |
|
| 47 | + * @param string $checkPath |
|
| 48 | + * @param string $logoutPath |
|
| 49 | + */ |
|
| 45 | 50 | public function __construct( |
| 46 | 51 | $authenticationServiceID, |
| 47 | 52 | SPSigningProviderInterface $signingProvider, |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace AerialShip\SamlSPBundle\DependencyInjection; |
| 4 | 4 | |
| 5 | -use Symfony\Component\Config\Definition\Exception\InvalidConfigurationException; |
|
| 6 | 5 | use Symfony\Component\Config\FileLocator; |
| 7 | 6 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
| 8 | 7 | use Symfony\Component\DependencyInjection\Loader\YamlFileLoader; |
@@ -30,6 +30,9 @@ discard block |
||
| 30 | 30 | |
| 31 | 31 | |
| 32 | 32 | |
| 33 | + /** |
|
| 34 | + * @param string $providerKey |
|
| 35 | + */ |
|
| 33 | 36 | public function __construct( |
| 34 | 37 | $providerKey, |
| 35 | 38 | UserManagerInterface $userProvider = null, |
@@ -52,7 +55,7 @@ discard block |
||
| 52 | 55 | /** |
| 53 | 56 | * Attempts to authenticate a TokenInterface object. |
| 54 | 57 | * @param TokenInterface $token The TokenInterface instance to authenticate |
| 55 | - * @return TokenInterface An authenticated TokenInterface instance, never null |
|
| 58 | + * @return null|SamlSpToken An authenticated TokenInterface instance, never null |
|
| 56 | 59 | * @throws AuthenticationException if the authentication fails |
| 57 | 60 | */ |
| 58 | 61 | public function authenticate(TokenInterface $token) |
@@ -82,7 +85,7 @@ discard block |
||
| 82 | 85 | |
| 83 | 86 | /** |
| 84 | 87 | * @param SamlSpToken $token |
| 85 | - * @return mixed|UserInterface |
|
| 88 | + * @return UserInterface |
|
| 86 | 89 | */ |
| 87 | 90 | protected function getUser(SamlSpToken $token) |
| 88 | 91 | { |
@@ -113,7 +116,7 @@ discard block |
||
| 113 | 116 | * @param \AerialShip\SamlSPBundle\Bridge\SamlSpInfo $samlInfo |
| 114 | 117 | * @param array $attributes |
| 115 | 118 | * @param array $roles |
| 116 | - * @param mixed $user |
|
| 119 | + * @param UserInterface $user |
|
| 117 | 120 | * @return SamlSpToken |
| 118 | 121 | */ |
| 119 | 122 | protected function createAuthenticatedToken(SamlSpInfo $samlInfo, array $attributes, array $roles, $user) |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | protected $entityClass; |
| 11 | 11 | |
| 12 | 12 | /** |
| 13 | - * @param $entityClass |
|
| 13 | + * @param string $entityClass |
|
| 14 | 14 | */ |
| 15 | 15 | public function __construct($entityClass) |
| 16 | 16 | { |
@@ -254,8 +254,8 @@ discard block |
||
| 254 | 254 | |
| 255 | 255 | |
| 256 | 256 | /** |
| 257 | - * @param $providerID |
|
| 258 | - * @param $idpID |
|
| 257 | + * @param string $providerID |
|
| 258 | + * @param string $idpID |
|
| 259 | 259 | * @param $spProvider |
| 260 | 260 | * @param $idpProvider |
| 261 | 261 | * @param $spMetaProvider |
@@ -303,7 +303,7 @@ discard block |
||
| 303 | 303 | } |
| 304 | 304 | |
| 305 | 305 | /** |
| 306 | - * @param $entityID |
|
| 306 | + * @param string $entityID |
|
| 307 | 307 | * @return EntityDescriptor|\PHPUnit_Framework_MockObject_MockObject |
| 308 | 308 | */ |
| 309 | 309 | protected function createEntityDescriptorStub($entityID) |