@@ -52,6 +52,9 @@ |
||
| 52 | 52 | $this->claimSourceManager = $claimSourceManager; |
| 53 | 53 | } |
| 54 | 54 | |
| 55 | + /** |
|
| 56 | + * @param string|null $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( |
@@ -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 | } |
@@ -51,6 +51,9 @@ |
||
| 51 | 51 | return $handler->handle($request); |
| 52 | 52 | } |
| 53 | 53 | |
| 54 | + /** |
|
| 55 | + * @param ResourceServer|null $resourceServer |
|
| 56 | + */ |
|
| 54 | 57 | private function checkResourceServer(?ResourceServer $resourceServer): void |
| 55 | 58 | { |
| 56 | 59 | if (null === $resourceServer) { |
@@ -17,6 +17,9 @@ |
||
| 17 | 17 | { |
| 18 | 18 | public function name(): string; |
| 19 | 19 | |
| 20 | + /** |
|
| 21 | + * @return string|null |
|
| 22 | + */ |
|
| 20 | 23 | public function parent(): ?string; |
| 21 | 24 | |
| 22 | 25 | public function isParentMandatory(): bool; |
@@ -42,6 +42,9 @@ |
||
| 42 | 42 | private $accessTokenRepository; |
| 43 | 43 | private $accessTokenLifetime; |
| 44 | 44 | |
| 45 | + /** |
|
| 46 | + * @param UserAccountRepository $userAccountRepository |
|
| 47 | + */ |
|
| 45 | 48 | public function __construct(ClientRepository $clientRepository, ?UserAccountRepository $userAccountRepository, TokenEndpointExtensionManager $tokenEndpointExtensionManager, ResponseFactory $responseFactory, AccessTokenIdGenerator $accessTokenIdGenerator, AccessTokenRepository $accessTokenRepository, int $accessLifetime) |
| 46 | 49 | { |
| 47 | 50 | $this->clientRepository = $clientRepository; |
@@ -19,6 +19,9 @@ |
||
| 19 | 19 | { |
| 20 | 20 | public function hint(): string; |
| 21 | 21 | |
| 22 | + /** |
|
| 23 | + * @return \OAuth2Framework\Component\Core\AccessToken\AccessToken|null |
|
| 24 | + */ |
|
| 22 | 25 | public function find(string $token): ?Token; |
| 23 | 26 | |
| 24 | 27 | public function introspect(Token $token): array; |
@@ -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); |
| 25 | 31 | } |
@@ -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 | |