@@ -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 | { |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | /** |
| 62 | 62 | * @param \Symfony\Component\HttpFoundation\Request $request |
| 63 | 63 | * @throws \InvalidArgumentException if cannot manage the Request |
| 64 | - * @return \Symfony\Component\HttpFoundation\Response|SamlSpInfo |
|
| 64 | + * @return Response |
|
| 65 | 65 | */ |
| 66 | 66 | public function manage(Request $request) |
| 67 | 67 | { |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | * @param \Symfony\Component\HttpFoundation\Request $request |
| 51 | 51 | * @throws \RuntimeException |
| 52 | 52 | * @throws \InvalidArgumentException if cannot manage the Request |
| 53 | - * @return \Symfony\Component\HttpFoundation\Response|SamlSpInfo |
|
| 53 | + * @return Response |
|
| 54 | 54 | */ |
| 55 | 55 | public function manage(Request $request) |
| 56 | 56 | { |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | /** |
| 45 | 45 | * @param \Symfony\Component\HttpFoundation\Request $request |
| 46 | 46 | * @throws \Symfony\Component\Process\Exception\RuntimeException |
| 47 | - * @return \Symfony\Component\HttpFoundation\Response|SamlSpInfo |
|
| 47 | + * @return Response |
|
| 48 | 48 | */ |
| 49 | 49 | function manage(Request $request) |
| 50 | 50 | { |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | /** |
| 36 | 36 | * @param \Symfony\Component\HttpFoundation\Request $request |
| 37 | 37 | * @throws \InvalidArgumentException if cannot manage the Request |
| 38 | - * @return \Symfony\Component\HttpFoundation\Response|SamlSpInfo|null |
|
| 38 | + * @return \Symfony\Component\HttpFoundation\RedirectResponse |
|
| 39 | 39 | */ |
| 40 | 40 | public function manage(Request $request) |
| 41 | 41 | { |
@@ -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, |
@@ -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) |