@@ -102,7 +102,7 @@ |
||
102 | 102 | } |
103 | 103 | |
104 | 104 | /** |
105 | - * @return array |
|
105 | + * @return string[] |
|
106 | 106 | */ |
107 | 107 | public function getScopes(): array |
108 | 108 | { |
@@ -88,7 +88,7 @@ |
||
88 | 88 | } |
89 | 89 | |
90 | 90 | /** |
91 | - * @return array |
|
91 | + * @return string[] |
|
92 | 92 | */ |
93 | 93 | public function getScopes(): array |
94 | 94 | { |
@@ -103,7 +103,7 @@ |
||
103 | 103 | } |
104 | 104 | |
105 | 105 | /** |
106 | - * @param array $types |
|
106 | + * @param ResponseType[] $types |
|
107 | 107 | * @param string $responseType |
108 | 108 | * |
109 | 109 | * @return string |
@@ -14,9 +14,9 @@ |
||
14 | 14 | namespace OAuth2Framework\Component\Server\AuthorizationEndpoint\ParameterChecker; |
15 | 15 | |
16 | 16 | use OAuth2Framework\Component\Server\AuthorizationEndpoint\Authorization; |
17 | +use OAuth2Framework\Component\Server\Core\Response\OAuth2Exception; |
|
17 | 18 | use OAuth2Framework\Component\Server\Core\Scope\ScopePolicyManager; |
18 | 19 | use OAuth2Framework\Component\Server\Core\Scope\ScopeRepository; |
19 | -use OAuth2Framework\Component\Server\Core\Response\OAuth2Exception; |
|
20 | 20 | |
21 | 21 | final class ScopeParameterChecker implements ParameterChecker |
22 | 22 | { |
@@ -16,12 +16,12 @@ |
||
16 | 16 | use OAuth2Framework\Component\Server\Core\AccessToken\Event as AccessTokenEvent; |
17 | 17 | use OAuth2Framework\Component\Server\Core\Client\ClientId; |
18 | 18 | use OAuth2Framework\Component\Server\Core\DataBag\DataBag; |
19 | +use OAuth2Framework\Component\Server\Core\DomainObject; |
|
19 | 20 | use OAuth2Framework\Component\Server\Core\Event\Event; |
20 | 21 | use OAuth2Framework\Component\Server\Core\ResourceOwner\ResourceOwnerId; |
21 | 22 | use OAuth2Framework\Component\Server\Core\ResourceServer\ResourceServerId; |
22 | 23 | use OAuth2Framework\Component\Server\Core\Token\Token; |
23 | 24 | use OAuth2Framework\Component\Server\Core\Token\TokenId; |
24 | -use OAuth2Framework\Component\Server\Core\DomainObject; |
|
25 | 25 | |
26 | 26 | final class AccessToken extends Token |
27 | 27 | { |
@@ -135,7 +135,7 @@ |
||
135 | 135 | } |
136 | 136 | |
137 | 137 | /** |
138 | - * @return array |
|
138 | + * @return string[] |
|
139 | 139 | */ |
140 | 140 | public function getScopes(): array |
141 | 141 | { |
@@ -22,7 +22,6 @@ |
||
22 | 22 | * @param ClientId $clientId |
23 | 23 | * @param DataBag $commandParameters |
24 | 24 | * @param DataBag $validatedParameters |
25 | - * @param UserAccountId|null $userAccountId |
|
26 | 25 | * @param callable $next |
27 | 26 | * |
28 | 27 | * @return DataBag |
@@ -13,13 +13,13 @@ |
||
13 | 13 | |
14 | 14 | namespace OAuth2Framework\Component\Server\ImplicitGrant; |
15 | 15 | |
16 | -use OAuth2Framework\Component\Server\AuthorizationEndpoint\ResponseType; |
|
17 | 16 | use OAuth2Framework\Component\Server\AuthorizationEndpoint\Authorization; |
18 | -use OAuth2Framework\Component\Server\TokenEndpoint\GrantType; |
|
19 | -use OAuth2Framework\Component\Server\TokenEndpoint\GrantTypeData; |
|
17 | +use OAuth2Framework\Component\Server\AuthorizationEndpoint\ResponseType; |
|
20 | 18 | use OAuth2Framework\Component\Server\Core\AccessToken\AccessTokenRepository; |
21 | 19 | use OAuth2Framework\Component\Server\Core\DataBag\DataBag; |
22 | 20 | use OAuth2Framework\Component\Server\Core\Response\OAuth2Exception; |
21 | +use OAuth2Framework\Component\Server\TokenEndpoint\GrantType; |
|
22 | +use OAuth2Framework\Component\Server\TokenEndpoint\GrantTypeData; |
|
23 | 23 | use Psr\Http\Message\ServerRequestInterface; |
24 | 24 | |
25 | 25 | final class ImplicitGrantType implements ResponseType, GrantType |
@@ -99,7 +99,7 @@ |
||
99 | 99 | |
100 | 100 | /** |
101 | 101 | * @param ResourceId $resourceName |
102 | - * @param resource $resource |
|
102 | + * @param Resource $resource |
|
103 | 103 | * |
104 | 104 | * @return array |
105 | 105 | */ |
@@ -15,8 +15,8 @@ |
||
15 | 15 | |
16 | 16 | use Interop\Http\Factory\ResponseFactoryInterface; |
17 | 17 | use Interop\Http\Factory\UriFactoryInterface; |
18 | -use Interop\Http\Server\RequestHandlerInterface; |
|
19 | 18 | use Interop\Http\Server\MiddlewareInterface; |
19 | +use Interop\Http\Server\RequestHandlerInterface; |
|
20 | 20 | use OAuth2Framework\Component\Server\Core\Response\OAuth2Exception; |
21 | 21 | use Psr\Http\Message\ResponseInterface; |
22 | 22 | use Psr\Http\Message\ServerRequestInterface; |