@@ -26,6 +26,9 @@ |
||
26 | 26 | private $redirectUri; |
27 | 27 | private $used; |
28 | 28 | |
29 | + /** |
|
30 | + * @param ResourceServerId|null $resourceServerId |
|
31 | + */ |
|
29 | 32 | public function __construct(AuthorizationCodeId $authorizationCodeId, ClientId $clientId, UserAccountId $userAccountId, array $queryParameters, string $redirectUri, \DateTimeImmutable $expiresAt, DataBag $parameter, DataBag $metadata, ?ResourceServerId $resourceServerId) |
30 | 33 | { |
31 | 34 | parent::__construct($authorizationCodeId, $clientId, $userAccountId, $parameter, $metadata, $expiresAt, $resourceServerId); |
@@ -30,6 +30,9 @@ |
||
30 | 30 | return 'auth_code'; |
31 | 31 | } |
32 | 32 | |
33 | + /** |
|
34 | + * @return Token |
|
35 | + */ |
|
33 | 36 | public function find(string $token): ?Token |
34 | 37 | { |
35 | 38 | $id = new AuthorizationCodeId($token); |
@@ -21,6 +21,9 @@ discard block |
||
21 | 21 | |
22 | 22 | private $description; |
23 | 23 | |
24 | + /** |
|
25 | + * @param string $description |
|
26 | + */ |
|
24 | 27 | public function __construct(Authorization $authorization, string $message, ?string $description) |
25 | 28 | { |
26 | 29 | parent::__construct($message); |
@@ -33,6 +36,9 @@ discard block |
||
33 | 36 | return $this->authorization; |
34 | 37 | } |
35 | 38 | |
39 | + /** |
|
40 | + * @return string |
|
41 | + */ |
|
36 | 42 | public function getDescription(): ?string |
37 | 43 | { |
38 | 44 | return $this->description; |
@@ -21,6 +21,10 @@ |
||
21 | 21 | |
22 | 22 | private $errorDescription; |
23 | 23 | |
24 | + /** |
|
25 | + * @param string $errorDescription |
|
26 | + * @param \InvalidArgumentException $previous |
|
27 | + */ |
|
24 | 28 | public function __construct(int $code, string $error, ?string $errorDescription, Authorization $authorization, ?\Exception $previous = null) |
25 | 29 | { |
26 | 30 | $this->authorization = $authorization; |
@@ -18,6 +18,9 @@ |
||
18 | 18 | |
19 | 19 | interface Extension |
20 | 20 | { |
21 | + /** |
|
22 | + * @return void |
|
23 | + */ |
|
21 | 24 | public function processAfter(ServerRequestInterface $request, Authorization $authorization): void; |
22 | 25 | |
23 | 26 | public function processBefore(ServerRequestInterface $request, Authorization $authorization): void; |
@@ -25,6 +25,9 @@ |
||
25 | 25 | $this->accessTokenHandlers[] = $accessTokenHandler; |
26 | 26 | } |
27 | 27 | |
28 | + /** |
|
29 | + * @return AccessToken |
|
30 | + */ |
|
28 | 31 | public function find(AccessTokenId $tokenId): ?AccessToken |
29 | 32 | { |
30 | 33 | foreach ($this->accessTokenHandlers as $accessTokenHandler) { |
@@ -66,6 +66,9 @@ |
||
66 | 66 | return $this->get($this->defaultTokenType); |
67 | 67 | } |
68 | 68 | |
69 | + /** |
|
70 | + * @return string |
|
71 | + */ |
|
69 | 72 | public function findToken(ServerRequestInterface $request, array &$additionalCredentialValues, ?TokenType &$type = null): ?string |
70 | 73 | { |
71 | 74 | foreach ($this->all() as $tmp_type) { |
@@ -30,6 +30,9 @@ |
||
30 | 30 | return 'refresh_token'; |
31 | 31 | } |
32 | 32 | |
33 | + /** |
|
34 | + * @return Token |
|
35 | + */ |
|
33 | 36 | public function find(string $token): ?Token |
34 | 37 | { |
35 | 38 | $id = new RefreshTokenId($token); |
@@ -19,7 +19,13 @@ |
||
19 | 19 | { |
20 | 20 | public function hint(): string; |
21 | 21 | |
22 | + /** |
|
23 | + * @return Token |
|
24 | + */ |
|
22 | 25 | public function find(string $token): ?Token; |
23 | 26 | |
27 | + /** |
|
28 | + * @return void |
|
29 | + */ |
|
24 | 30 | public function revoke(Token $token): void; |
25 | 31 | } |