@@ -130,10 +130,10 @@ discard block |
||
| 130 | 130 | /** |
| 131 | 131 | * Get a single parameter from the auth code request parameters. |
| 132 | 132 | * |
| 133 | - * @param $key |
|
| 133 | + * @param string $key |
|
| 134 | 134 | * @param null $default |
| 135 | 135 | * |
| 136 | - * @return mixed |
|
| 136 | + * @return string |
|
| 137 | 137 | */ |
| 138 | 138 | public function getAuthCodeRequestParam($key, $default = null) |
| 139 | 139 | { |
@@ -216,7 +216,7 @@ discard block |
||
| 216 | 216 | * @param bool $httpHeadersOnly whether or not to check only the http headers of the request |
| 217 | 217 | * @param string|null $accessToken an access token to validate |
| 218 | 218 | * |
| 219 | - * @return mixed |
|
| 219 | + * @return boolean |
|
| 220 | 220 | */ |
| 221 | 221 | public function validateAccessToken($httpHeadersOnly = false, $accessToken = null) |
| 222 | 222 | { |
@@ -226,7 +226,7 @@ discard block |
||
| 226 | 226 | /** |
| 227 | 227 | * get the scopes associated with the current request. |
| 228 | 228 | * |
| 229 | - * @return array |
|
| 229 | + * @return \League\OAuth2\Server\Entity\ScopeEntity[] |
|
| 230 | 230 | */ |
| 231 | 231 | public function getScopes() |
| 232 | 232 | { |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | * |
| 45 | 45 | * @param string $token The access token |
| 46 | 46 | * |
| 47 | - * @return null|AbstractTokenEntity |
|
| 47 | + * @return null|AccessTokenEntity |
|
| 48 | 48 | */ |
| 49 | 49 | public function get($token) |
| 50 | 50 | { |
@@ -155,7 +155,7 @@ |
||
| 155 | 155 | * @param string $id The client's unique id |
| 156 | 156 | * @param string $secret The clients' unique secret |
| 157 | 157 | * |
| 158 | - * @return string |
|
| 158 | + * @return integer |
|
| 159 | 159 | */ |
| 160 | 160 | public function create($name, $id, $secret) |
| 161 | 161 | { |
@@ -10,13 +10,13 @@ |
||
| 10 | 10 | |
| 11 | 11 | namespace LucaDegasperi\OAuth2Server\Grant; |
| 12 | 12 | |
| 13 | -use League\OAuth2\Server\Grant\AbstractGrant; |
|
| 14 | 13 | use League\OAuth2\Server\Entity\AccessTokenEntity; |
| 15 | 14 | use League\OAuth2\Server\Entity\ClientEntity; |
| 16 | 15 | use League\OAuth2\Server\Entity\RefreshTokenEntity; |
| 17 | 16 | use League\OAuth2\Server\Entity\SessionEntity; |
| 18 | 17 | use League\OAuth2\Server\Event; |
| 19 | 18 | use League\OAuth2\Server\Exception; |
| 19 | +use League\OAuth2\Server\Grant\AbstractGrant; |
|
| 20 | 20 | use League\OAuth2\Server\Util\SecureKey; |
| 21 | 21 | |
| 22 | 22 | /** |
@@ -13,13 +13,11 @@ |
||
| 13 | 13 | |
| 14 | 14 | use League\OAuth2\Server\Entity\AccessTokenEntity; |
| 15 | 15 | use League\OAuth2\Server\Entity\ClientEntity; |
| 16 | -use League\OAuth2\Server\Entity\RefreshTokenEntity; |
|
| 17 | -use League\OAuth2\Server\Entity\SessionEntity; |
|
| 18 | 16 | use League\OAuth2\Server\Event; |
| 19 | 17 | use League\OAuth2\Server\Exception; |
| 20 | -use League\OAuth2\Server\Util\SecureKey; |
|
| 21 | -use League\OAuth2\Server\ResourceServer; |
|
| 22 | 18 | use League\OAuth2\Server\Grant\AbstractGrant; |
| 19 | +use League\OAuth2\Server\ResourceServer; |
|
| 20 | +use League\OAuth2\Server\Util\SecureKey; |
|
| 23 | 21 | |
| 24 | 22 | /** |
| 25 | 23 | * Password grant class |