@@ -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; |
@@ -21,6 +21,10 @@ |
||
21 | 21 | |
22 | 22 | private $errorDescription; |
23 | 23 | |
24 | + /** |
|
25 | + * @param string|null $errorDescription |
|
26 | + * @param \Exception $previous |
|
27 | + */ |
|
24 | 28 | public function __construct(string $error, ?string $errorDescription, AuthorizationRequest $authorization, ?\Exception $previous = null) |
25 | 29 | { |
26 | 30 | $this->authorization = $authorization; |
@@ -18,5 +18,8 @@ |
||
18 | 18 | |
19 | 19 | interface Extension |
20 | 20 | { |
21 | + /** |
|
22 | + * @return void |
|
23 | + */ |
|
21 | 24 | public function process(ServerRequestInterface $request, AuthorizationRequest $authorization): void; |
22 | 25 | } |
@@ -19,6 +19,9 @@ |
||
19 | 19 | |
20 | 20 | interface LoginHandler |
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; |
@@ -17,5 +17,8 @@ |
||
17 | 17 | |
18 | 18 | interface ParameterChecker |
19 | 19 | { |
20 | + /** |
|
21 | + * @return void |
|
22 | + */ |
|
20 | 23 | public function check(AuthorizationRequest $authorization): void; |
21 | 24 | } |
@@ -41,7 +41,13 @@ |
||
41 | 41 | */ |
42 | 42 | public function getResponseMode(): string; |
43 | 43 | |
44 | + /** |
|
45 | + * @return void |
|
46 | + */ |
|
44 | 47 | public function preProcess(AuthorizationRequest $authorization): void; |
45 | 48 | |
49 | + /** |
|
50 | + * @return void |
|
51 | + */ |
|
46 | 52 | public function process(AuthorizationRequest $authorization): void; |
47 | 53 | } |
@@ -19,6 +19,9 @@ |
||
19 | 19 | |
20 | 20 | interface SelectAccountHandler |
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; |
@@ -18,7 +18,13 @@ |
||
18 | 18 | |
19 | 19 | interface UserDiscovery |
20 | 20 | { |
21 | + /** |
|
22 | + * @return User |
|
23 | + */ |
|
21 | 24 | public function getCurrentUser(): ?User; |
22 | 25 | |
26 | + /** |
|
27 | + * @return UserAccount |
|
28 | + */ |
|
23 | 29 | public function getCurrentAccount(): ?UserAccount; |
24 | 30 | } |
@@ -13,8 +13,8 @@ |
||
13 | 13 | |
14 | 14 | namespace OAuth2Framework\Component\AuthorizationEndpoint\User; |
15 | 15 | |
16 | -use OAuth2Framework\Component\Core\User\User; |
|
17 | 16 | use OAuth2Framework\Component\Core\UserAccount\UserAccount; |
17 | +use OAuth2Framework\Component\Core\User\User; |
|
18 | 18 | |
19 | 19 | interface UserDiscovery |
20 | 20 | { |