@@ -38,6 +38,7 @@ |
||
| 38 | 38 | * @param ServerRequestInterface $request The request |
| 39 | 39 | * |
| 40 | 40 | * @throws OAuth2Message |
| 41 | + * @return void |
|
| 41 | 42 | */ |
| 42 | 43 | public function checkRequest(ServerRequestInterface $request); |
| 43 | 44 | |
@@ -155,6 +155,10 @@ |
||
| 155 | 155 | $this->authorizationCodeRepository = $authorizationCodeRepository; |
| 156 | 156 | } |
| 157 | 157 | |
| 158 | + /** |
|
| 159 | + * @param null|JKUFactory $jkuFactory |
|
| 160 | + * @param null|AuthorizationCodeRepository $authorizationCodeRepository |
|
| 161 | + */ |
|
| 158 | 162 | public static function create(string $issuer, UserInfo $userinfo, int $lifetime, Client $client, UserAccount $userAccount, string $redirectUri, ?JKUFactory $jkuFactory, ?AuthorizationCodeRepository $authorizationCodeRepository): self |
| 159 | 163 | { |
| 160 | 164 | return new self($issuer, $userinfo, $lifetime, $client, $userAccount, $redirectUri, $jkuFactory, $authorizationCodeRepository); |
@@ -28,6 +28,7 @@ |
||
| 28 | 28 | * @throws Exception\ProcessAuthorizationException |
| 29 | 29 | * @throws Exception\RedirectToLoginPageException |
| 30 | 30 | * @throws Exception\ShowConsentScreenException |
| 31 | + * @return void |
|
| 31 | 32 | */ |
| 32 | 33 | public function check(Authorization $authorization, ?UserAccount $userAccount, bool $isFullyAuthenticated): void; |
| 33 | 34 | } |
@@ -15,5 +15,8 @@ |
||
| 15 | 15 | |
| 16 | 16 | interface AuthenticationContextClassReferenceSupport extends UserAccountManager |
| 17 | 17 | { |
| 18 | + /** |
|
| 19 | + * @return void |
|
| 20 | + */ |
|
| 18 | 21 | public function getAuthenticationContextClassReferenceFor(UserAccount $user): ?string; |
| 19 | 22 | } |
@@ -24,6 +24,7 @@ |
||
| 24 | 24 | |
| 25 | 25 | /** |
| 26 | 26 | * @param AccessToken $accessToken The access token to store |
| 27 | + * @return void |
|
| 27 | 28 | */ |
| 28 | 29 | public function save(AccessToken $accessToken): void; |
| 29 | 30 | } |
@@ -26,5 +26,8 @@ |
||
| 26 | 26 | */ |
| 27 | 27 | public function find(AuthorizationCodeId $authorizationCodeId): ?AuthorizationCode; |
| 28 | 28 | |
| 29 | + /** |
|
| 30 | + * @return void |
|
| 31 | + */ |
|
| 29 | 32 | public function save(AuthorizationCode $authorizationCode): void; |
| 30 | 33 | } |
@@ -267,6 +267,7 @@ discard block |
||
| 267 | 267 | } |
| 268 | 268 | |
| 269 | 269 | /** |
| 270 | + * @param string $value |
|
| 270 | 271 | * @return Authorization |
| 271 | 272 | */ |
| 272 | 273 | public function withResponseHeader(string $responseHeader, $value): self |
@@ -356,6 +357,7 @@ discard block |
||
| 356 | 357 | } |
| 357 | 358 | |
| 358 | 359 | /** |
| 360 | + * @param boolean $data |
|
| 359 | 361 | * @return Authorization |
| 360 | 362 | */ |
| 361 | 363 | public function withData(string $key, $data): self |
@@ -55,6 +55,9 @@ |
||
| 55 | 55 | return $handler->handle($request); |
| 56 | 56 | } |
| 57 | 57 | |
| 58 | + /** |
|
| 59 | + * @param null|Client $client |
|
| 60 | + */ |
|
| 58 | 61 | private function checkClient(?Client $client): void |
| 59 | 62 | { |
| 60 | 63 | if (null === $client || $client->isDeleted()) { |
@@ -15,6 +15,9 @@ |
||
| 15 | 15 | |
| 16 | 16 | interface InitialAccessTokenRepository |
| 17 | 17 | { |
| 18 | + /** |
|
| 19 | + * @return void |
|
| 20 | + */ |
|
| 18 | 21 | public function save(InitialAccessToken $initialAccessToken); |
| 19 | 22 | |
| 20 | 23 | /** |