@@ -40,6 +40,9 @@ |
||
| 40 | 40 | private $accessTokenRepository; |
| 41 | 41 | private $accessTokenLifetime; |
| 42 | 42 | |
| 43 | + /** |
|
| 44 | + * @param UserAccountRepository $userAccountRepository |
|
| 45 | + */ |
|
| 43 | 46 | public function __construct(ClientRepository $clientRepository, ?UserAccountRepository $userAccountRepository, TokenEndpointExtensionManager $tokenEndpointExtensionManager, ResponseFactory $responseFactory, AccessTokenRepository $accessTokenRepository, int $accessLifetime) |
| 44 | 47 | { |
| 45 | 48 | $this->clientRepository = $clientRepository; |
@@ -29,7 +29,13 @@ |
||
| 29 | 29 | */ |
| 30 | 30 | public function find(AuthorizationCodeId $authorizationCodeId): ?AuthorizationCode; |
| 31 | 31 | |
| 32 | + /** |
|
| 33 | + * @return void |
|
| 34 | + */ |
|
| 32 | 35 | public function save(AuthorizationCode $authorizationCode): void; |
| 33 | 36 | |
| 37 | + /** |
|
| 38 | + * @param ResourceServerId|null $resourceServerId |
|
| 39 | + */ |
|
| 34 | 40 | public function create(ClientId $clientId, UserAccountId $userAccountId, array $queryParameters, string $redirectUri, \DateTimeImmutable $expiresAt, DataBag $parameter, DataBag $metadata, ?ResourceServerId $resourceServerId): AuthorizationCode; |
| 35 | 41 | } |
@@ -54,6 +54,9 @@ |
||
| 54 | 54 | return $handler->handle($request); |
| 55 | 55 | } |
| 56 | 56 | |
| 57 | + /** |
|
| 58 | + * @param Client|null $client |
|
| 59 | + */ |
|
| 57 | 60 | private function checkClient(?Client $client): void |
| 58 | 61 | { |
| 59 | 62 | if (null === $client || $client->isDeleted()) { |
@@ -29,8 +29,14 @@ |
||
| 29 | 29 | |
| 30 | 30 | public function getOwnerId(): ?UserAccountId; |
| 31 | 31 | |
| 32 | + /** |
|
| 33 | + * @return void |
|
| 34 | + */ |
|
| 32 | 35 | public function setParameter(DataBag $parameter): void; |
| 33 | 36 | |
| 37 | + /** |
|
| 38 | + * @return void |
|
| 39 | + */ |
|
| 34 | 40 | public function markAsDeleted(): void; |
| 35 | 41 | |
| 36 | 42 | public function isDeleted(): bool; |
@@ -57,6 +57,10 @@ |
||
| 57 | 57 | private $jkuFactory = null; |
| 58 | 58 | private $authorizationCodeRepository = null; |
| 59 | 59 | |
| 60 | + /** |
|
| 61 | + * @param JKUFactory|null $jkuFactory |
|
| 62 | + * @param AuthorizationCodeRepository|null $authorizationCodeRepository |
|
| 63 | + */ |
|
| 60 | 64 | public function __construct(string $issuer, UserInfo $userinfo, int $lifetime, Client $client, UserAccount $userAccount, string $redirectUri, ?JKUFactory $jkuFactory, ?AuthorizationCodeRepository $authorizationCodeRepository) |
| 61 | 65 | { |
| 62 | 66 | $this->issuer = $issuer; |
@@ -24,6 +24,9 @@ |
||
| 24 | 24 | */ |
| 25 | 25 | interface RefreshTokenRepository |
| 26 | 26 | { |
| 27 | + /** |
|
| 28 | + * @return void |
|
| 29 | + */ |
|
| 27 | 30 | public function save(RefreshToken $refreshToken): void; |
| 28 | 31 | |
| 29 | 32 | public function find(RefreshTokenId $refreshTokenId): ?RefreshToken; |
@@ -17,7 +17,6 @@ |
||
| 17 | 17 | use OAuth2Framework\Component\Core\AccessToken\AccessTokenId; |
| 18 | 18 | use OAuth2Framework\Component\Core\Message\OAuth2Error; |
| 19 | 19 | use OAuth2Framework\Component\Core\Message\OAuth2MessageFactoryManager; |
| 20 | -use OAuth2Framework\Component\Core\TokenType\TokenType; |
|
| 21 | 20 | use OAuth2Framework\Component\Core\TokenType\TokenTypeManager; |
| 22 | 21 | use OAuth2Framework\SecurityBundle\Security\Authentication\Token\OAuth2Token; |
| 23 | 22 | use Symfony\Bridge\PsrHttpMessage\Factory\DiactorosFactory; |