@@ -20,6 +20,7 @@ |
||
| 20 | 20 | { |
| 21 | 21 | /** |
| 22 | 22 | * @throws \Exception |
| 23 | + * @return void |
|
| 23 | 24 | */ |
| 24 | 25 | public function check(OAuth2Token $token, OAuth2 $configuration): void; |
| 25 | 26 | } |
@@ -20,12 +20,19 @@ |
||
| 20 | 20 | { |
| 21 | 21 | public function name(): string; |
| 22 | 22 | |
| 23 | + /** |
|
| 24 | + * @return void |
|
| 25 | + */ |
|
| 23 | 26 | public function load(array $configs, ContainerBuilder $container); |
| 24 | 27 | |
| 28 | + /** |
|
| 29 | + * @return void |
|
| 30 | + */ |
|
| 25 | 31 | public function build(ContainerBuilder $container); |
| 26 | 32 | |
| 27 | 33 | /** |
| 28 | - * @param NodeDefinition $node |
|
| 34 | + * @param ArrayNodeDefinition $node |
|
| 35 | + * @return void |
|
| 29 | 36 | */ |
| 30 | 37 | public function getNodeDefinition(ArrayNodeDefinition $node, ArrayNodeDefinition $rootNode); |
| 31 | 38 | |
@@ -25,6 +25,9 @@ |
||
| 25 | 25 | private $expiresAt; |
| 26 | 26 | private $userAccountId; |
| 27 | 27 | |
| 28 | + /** |
|
| 29 | + * @param \DateTimeImmutable|null $expiresAt |
|
| 30 | + */ |
|
| 28 | 31 | public function __construct(InitialAccessTokenId $initialAccessTokenId, UserAccountId $userAccountId, ?\DateTimeImmutable $expiresAt) |
| 29 | 32 | { |
| 30 | 33 | $this->initialAccessTokenId = $initialAccessTokenId; |
@@ -25,6 +25,9 @@ |
||
| 25 | 25 | private $parameters; |
| 26 | 26 | private $userAccountId; |
| 27 | 27 | |
| 28 | + /** |
|
| 29 | + * @param UserAccountId $userAccountId |
|
| 30 | + */ |
|
| 28 | 31 | public function __construct(ClientId $clientId, DataBag $parameters, ?UserAccountId $userAccountId) |
| 29 | 32 | { |
| 30 | 33 | $this->clientId = $clientId; |
@@ -56,6 +56,10 @@ |
||
| 56 | 56 | private $jkuFactory = null; |
| 57 | 57 | private $authorizationCodeRepository = null; |
| 58 | 58 | |
| 59 | + /** |
|
| 60 | + * @param null|JKUFactory $jkuFactory |
|
| 61 | + * @param null|AuthorizationCodeRepository $authorizationCodeRepository |
|
| 62 | + */ |
|
| 59 | 63 | public function __construct(string $issuer, UserInfo $userinfo, int $lifetime, Client $client, UserAccount $userAccount, string $redirectUri, ?JKUFactory $jkuFactory, ?AuthorizationCodeRepository $authorizationCodeRepository) |
| 60 | 64 | { |
| 61 | 65 | $this->issuer = $issuer; |
@@ -52,6 +52,9 @@ |
||
| 52 | 52 | $this->claimSourceManager = $claimSourceManager; |
| 53 | 53 | } |
| 54 | 54 | |
| 55 | + /** |
|
| 56 | + * @param string $claimsLocales |
|
| 57 | + */ |
|
| 55 | 58 | public function getUserinfo(Client $client, UserAccount $userAccount, string $redirectUri, array $requestedClaims, string $scope, ?string $claimsLocales): array |
| 56 | 59 | { |
| 57 | 60 | $requestedClaims = \array_merge( |
@@ -21,8 +21,12 @@ |
||
| 21 | 21 | * @param AuthorizationCodeId $authorizationCodeId the authorization code string for which to fetch data |
| 22 | 22 | * |
| 23 | 23 | * @see http://tools.ietf.org/html/rfc6749#section-4.1 |
| 24 | + * @return AuthorizationCode|null |
|
| 24 | 25 | */ |
| 25 | 26 | public function find(AuthorizationCodeId $authorizationCodeId): ?AuthorizationCode; |
| 26 | 27 | |
| 28 | + /** |
|
| 29 | + * @return void |
|
| 30 | + */ |
|
| 27 | 31 | public function save(AuthorizationCode $authorizationCode): void; |
| 28 | 32 | } |
@@ -19,6 +19,7 @@ |
||
| 19 | 19 | { |
| 20 | 20 | /** |
| 21 | 21 | * @param bool $isFullyAuthenticated |
| 22 | + * @return null|UserAccount |
|
| 22 | 23 | */ |
| 23 | 24 | public function find(?bool &$isFullyAuthenticated = null): ?UserAccount; |
| 24 | 25 | } |
@@ -15,5 +15,8 @@ |
||
| 15 | 15 | |
| 16 | 16 | interface AccessTokenHandler |
| 17 | 17 | { |
| 18 | + /** |
|
| 19 | + * @return AccessToken|null |
|
| 20 | + */ |
|
| 18 | 21 | public function find(AccessTokenId $token): ?AccessToken; |
| 19 | 22 | } |