@@ -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 | } |
@@ -23,6 +23,10 @@ |
||
| 23 | 23 | private $expiresAt; |
| 24 | 24 | private $userAccountId; |
| 25 | 25 | |
| 26 | + /** |
|
| 27 | + * @param UserAccountId $userAccountId |
|
| 28 | + * @param \DateTimeImmutable|null $expiresAt |
|
| 29 | + */ |
|
| 26 | 30 | public function __construct(InitialAccessTokenId $initialAccessTokenId, ?UserAccountId $userAccountId, ?\DateTimeImmutable $expiresAt) |
| 27 | 31 | { |
| 28 | 32 | $this->initialAccessTokenId = $initialAccessTokenId; |
@@ -31,6 +31,7 @@ |
||
| 31 | 31 | |
| 32 | 32 | /** |
| 33 | 33 | * This function checks the request. |
| 34 | + * @return void |
|
| 34 | 35 | */ |
| 35 | 36 | public function checkRequest(ServerRequestInterface $request): void; |
| 36 | 37 | |
@@ -18,5 +18,8 @@ |
||
| 18 | 18 | |
| 19 | 19 | interface Checker |
| 20 | 20 | { |
| 21 | + /** |
|
| 22 | + * @return void |
|
| 23 | + */ |
|
| 21 | 24 | public function check(OAuth2Token $token, OAuth2 $configuration): void; |
| 22 | 25 | } |
@@ -209,6 +209,9 @@ discard block |
||
| 209 | 209 | return \array_key_exists($param, $this->getResponseParameters()); |
| 210 | 210 | } |
| 211 | 211 | |
| 212 | + /** |
|
| 213 | + * @param string $value |
|
| 214 | + */ |
|
| 212 | 215 | public function setResponseHeader(string $responseHeader, $value): void |
| 213 | 216 | { |
| 214 | 217 | $this->responseHeaders[$responseHeader] = $value; |
@@ -274,6 +277,9 @@ discard block |
||
| 274 | 277 | $this->resourceServer = $resourceServer; |
| 275 | 278 | } |
| 276 | 279 | |
| 280 | + /** |
|
| 281 | + * @param string $value |
|
| 282 | + */ |
|
| 277 | 283 | public function setConsentScreenOption(string $option, $value): void |
| 278 | 284 | { |
| 279 | 285 | $this->consentScreenOptions[$option] = $value; |
@@ -19,8 +19,8 @@ |
||
| 19 | 19 | use OAuth2Framework\Component\Core\DataBag\DataBag; |
| 20 | 20 | use OAuth2Framework\Component\Core\ResourceServer\ResourceServer; |
| 21 | 21 | use OAuth2Framework\Component\Core\TokenType\TokenType; |
| 22 | -use OAuth2Framework\Component\Core\User\User; |
|
| 23 | 22 | use OAuth2Framework\Component\Core\UserAccount\UserAccount; |
| 23 | +use OAuth2Framework\Component\Core\User\User; |
|
| 24 | 24 | |
| 25 | 25 | class AuthorizationRequest |
| 26 | 26 | { |
@@ -19,6 +19,9 @@ |
||
| 19 | 19 | |
| 20 | 20 | interface ConsentHandler |
| 21 | 21 | { |
| 22 | + /** |
|
| 23 | + * @return void |
|
| 24 | + */ |
|
| 22 | 25 | public function prepare(ServerRequestInterface $serverRequest, string $authorizationId, AuthorizationRequest $authorizationRequest): void; |
| 23 | 26 | |
| 24 | 27 | public function hasBeenProcessed(ServerRequestInterface $serverRequest, string $authorizationId, AuthorizationRequest $authorizationRequest): bool; |