@@ -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 | { |
@@ -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) |
@@ -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) |
@@ -92,7 +92,7 @@ |
||
92 | 92 | * @param \League\OAuth2\Server\RequestTypes\AuthorizationRequest $authRequest |
93 | 93 | * @param \CodexShaper\OAuth2\Server\Models\User $user |
94 | 94 | * |
95 | - * @return \League\OAuth2\Server\ResponseTypes\ResponseTypeInterface |
|
95 | + * @return \Psr\Http\Message\ResponseInterface |
|
96 | 96 | */ |
97 | 97 | public function approve($authRequest, $user) |
98 | 98 | { |
@@ -8,7 +8,6 @@ |
||
8 | 8 | use CodexShaper\OAuth2\Server\Manager; |
9 | 9 | use CodexShaper\OAuth2\Server\Model; |
10 | 10 | use CodexShaper\OAuth2\Server\Models\User; |
11 | -use Illuminate\Http\Request; |
|
12 | 11 | use League\OAuth2\Server\Exception\OAuthServerException; |
13 | 12 | |
14 | 13 | class AuthorizationController |
@@ -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) |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | * Revoke provided token id. |
215 | 215 | * |
216 | 216 | * @param string $model |
217 | - * @param string $grantType |
|
217 | + * @param string $tokenId |
|
218 | 218 | * |
219 | 219 | * @return void |
220 | 220 | */ |
@@ -227,7 +227,7 @@ discard block |
||
227 | 227 | * Determine if the given token id is revoked or not. |
228 | 228 | * |
229 | 229 | * @param string $model |
230 | - * @param string $grantType |
|
230 | + * @param string $tokenId |
|
231 | 231 | * |
232 | 232 | * @return bool |
233 | 233 | */ |
@@ -240,7 +240,8 @@ discard block |
||
240 | 240 | * Authorization token. |
241 | 241 | * |
242 | 242 | * @param string $model |
243 | - * @param array $data |
|
243 | + * @param \League\OAuth2\Server\RequestTypes\AuthorizationRequest $authRequest |
|
244 | + * @param Models\User $user |
|
244 | 245 | * |
245 | 246 | * @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 |
246 | 247 | */ |
@@ -82,7 +82,7 @@ |
||
82 | 82 | /** |
83 | 83 | * Determine if the client should skip the authorization prompt. |
84 | 84 | * |
85 | - * @return bool |
|
85 | + * @return string |
|
86 | 86 | */ |
87 | 87 | public function isSkipsAuthorization() |
88 | 88 | { |