@@ -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 | } |
@@ -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 | /** |
@@ -17,6 +17,7 @@ |
||
17 | 17 | { |
18 | 18 | /** |
19 | 19 | * Save the client. |
20 | + * @return void |
|
20 | 21 | */ |
21 | 22 | public function save(Client $client); |
22 | 23 |
@@ -17,8 +17,14 @@ |
||
17 | 17 | |
18 | 18 | interface UserAccount extends ResourceOwner |
19 | 19 | { |
20 | + /** |
|
21 | + * @return integer|null |
|
22 | + */ |
|
20 | 23 | public function getLastLoginAt(): ?int; |
21 | 24 | |
25 | + /** |
|
26 | + * @return integer|null |
|
27 | + */ |
|
22 | 28 | public function getLastUpdateAt(): ?int; |
23 | 29 | |
24 | 30 | public function getUserAccountId(): UserAccountId; |
@@ -19,6 +19,7 @@ |
||
19 | 19 | * Get the user account with the specified User Account Name. |
20 | 20 | * |
21 | 21 | * @param string $username User Account Name |
22 | + * @return string |
|
22 | 23 | */ |
23 | 24 | public function findOneByUsername(string $username): ?UserAccount; |
24 | 25 |
@@ -97,6 +97,7 @@ discard block |
||
97 | 97 | |
98 | 98 | /** |
99 | 99 | * JWTBearerGrantType constructor. |
100 | + * @param UserAccountRepository $userAccountRepository |
|
100 | 101 | */ |
101 | 102 | public function __construct(JsonConverter $jsonConverter, JWSVerifier $jwsVerifier, HeaderCheckerManager $headerCheckerManager, ClaimCheckerManager $claimCheckerManager, ClientRepository $clientRepository, ?UserAccountRepository $userAccountRepository) |
102 | 103 | { |
@@ -273,6 +274,9 @@ discard block |
||
273 | 274 | return $grantTypeData; |
274 | 275 | } |
275 | 276 | |
277 | + /** |
|
278 | + * @return ResourceOwnerId |
|
279 | + */ |
|
276 | 280 | private function findResourceOwner(string $subject): ?ResourceOwnerId |
277 | 281 | { |
278 | 282 | $userAccount = $this->userAccountRepository ? $this->userAccountRepository->find(new UserAccountId($subject)) : null; |
@@ -19,7 +19,13 @@ |
||
19 | 19 | */ |
20 | 20 | interface RefreshTokenRepository |
21 | 21 | { |
22 | + /** |
|
23 | + * @return void |
|
24 | + */ |
|
22 | 25 | public function save(RefreshToken $refreshToken): void; |
23 | 26 | |
27 | + /** |
|
28 | + * @return RefreshToken|null |
|
29 | + */ |
|
24 | 30 | public function find(RefreshTokenId $refreshTokenId): ?RefreshToken; |
25 | 31 | } |