@@ -14,7 +14,7 @@ |
||
14 | 14 | * |
15 | 15 | * @param string|int $identifier |
16 | 16 | * |
17 | - * @return void |
|
17 | + * @return UserEntityInterface |
|
18 | 18 | */ |
19 | 19 | public function __construct($identifier) |
20 | 20 | { |
@@ -56,6 +56,9 @@ |
||
56 | 56 | } |
57 | 57 | } |
58 | 58 | |
59 | + /** |
|
60 | + * @param \League\OAuth2\Server\RequestTypes\AuthorizationRequest $authRequest |
|
61 | + */ |
|
59 | 62 | public function filterScopes($authRequest) |
60 | 63 | { |
61 | 64 | return array_filter($authRequest->getScopes(), function ($scope) { |
@@ -7,7 +7,6 @@ |
||
7 | 7 | use CodexShaper\OAuth2\Server\Manager; |
8 | 8 | use CodexShaper\OAuth2\Server\Model; |
9 | 9 | use CodexShaper\OAuth2\Server\Models\User; |
10 | -use Illuminate\Http\Request; |
|
11 | 10 | use League\OAuth2\Server\Exception\OAuthServerException; |
12 | 11 | use Psr\Http\Message\ResponseInterface; |
13 | 12 | use Psr\Http\Message\ServerRequestInterface; |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | /** |
109 | 109 | * Get all available scopes. |
110 | 110 | * |
111 | - * @return array |
|
111 | + * @return string |
|
112 | 112 | */ |
113 | 113 | public static function getScopes() |
114 | 114 | { |
@@ -121,8 +121,6 @@ discard block |
||
121 | 121 | * |
122 | 122 | * @param \League\OAuth2\Server\Entities\ScopeEntityInterface[] $scopes |
123 | 123 | * @param string $grantType |
124 | - * @param \League\OAuth2\Server\Entities\ClientEntityInterface $clientEntity |
|
125 | - * @param null|string $userIdentifier |
|
126 | 124 | * |
127 | 125 | * @return \League\OAuth2\Server\Entities\ScopeEntityInterface[] |
128 | 126 | */ |
@@ -272,7 +270,7 @@ discard block |
||
272 | 270 | /** |
273 | 271 | * Create a resource server for validation. |
274 | 272 | * |
275 | - * @return \League\OAuth2\Server\ResourServer |
|
273 | + * @return ResourceServer |
|
276 | 274 | */ |
277 | 275 | public function getResourceServer() |
278 | 276 | { |
@@ -285,8 +283,8 @@ discard block |
||
285 | 283 | /** |
286 | 284 | * Create a CryptKey instance without permissions check. |
287 | 285 | * |
288 | - * @param string $key |
|
289 | 286 | * |
287 | + * @param string $type |
|
290 | 288 | * @return \League\OAuth2\Server\CryptKey |
291 | 289 | */ |
292 | 290 | protected function makeCryptKey($type) |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | * |
55 | 55 | * @param string $clientIdentifier The client's identifier |
56 | 56 | * |
57 | - * @return \League\OAuth2\Server\Entities\ClientEntityInterface|null |
|
57 | + * @return null|ClientEntity |
|
58 | 58 | */ |
59 | 59 | public static function getClientEntity($clientIdentifier) |
60 | 60 | { |
@@ -77,8 +77,8 @@ discard block |
||
77 | 77 | /** |
78 | 78 | * store a new auth code to permanent storage. |
79 | 79 | * |
80 | - * @param \League\OAuth2\Server\Entities\AuthCodeEntityInterface $accessTokenEntity |
|
81 | 80 | * |
81 | + * @param \League\OAuth2\Server\Entities\AuthCodeEntityInterface $authCodeEntity |
|
82 | 82 | * @return void |
83 | 83 | */ |
84 | 84 | public static function storeAuthCode($authCodeEntity) |
@@ -212,7 +212,6 @@ discard block |
||
212 | 212 | * Revoke provided token id. |
213 | 213 | * |
214 | 214 | * @param string $model |
215 | - * @param string $grantType |
|
216 | 215 | * |
217 | 216 | * @return void |
218 | 217 | */ |
@@ -225,7 +224,6 @@ discard block |
||
225 | 224 | * Determine if the given token id is revoked or not. |
226 | 225 | * |
227 | 226 | * @param string $model |
228 | - * @param string $grantType |
|
229 | 227 | * |
230 | 228 | * @return bool |
231 | 229 | */ |
@@ -238,7 +236,7 @@ discard block |
||
238 | 236 | * Authorization token. |
239 | 237 | * |
240 | 238 | * @param string $model |
241 | - * @param array $data |
|
239 | + * @param \League\OAuth2\Server\RequestTypes\AuthorizationRequest $authRequest |
|
242 | 240 | * |
243 | 241 | * @return \CodexShaper\OAuth2\Server\Models\AuthCode|\CodexShaper\OAuth2\Server\Models\Client|\CodexShaper\OAuth2\Server\Models\RefreshToken|\CodexShaper\OAuth2\Server\Models\Token|\CodexShaper\OAuth2\Server\Models\User|null |
244 | 242 | */ |
@@ -19,8 +19,8 @@ |
||
19 | 19 | /** |
20 | 20 | * Create a CryptKey instance without permissions check. |
21 | 21 | * |
22 | - * @param string $key |
|
23 | 22 | * |
23 | + * @param string $type |
|
24 | 24 | * @return \League\OAuth2\Server\CryptKey |
25 | 25 | */ |
26 | 26 | protected function makeCryptKey($type) |