芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/airport-back/vendor/yiisoft/yii2/filters/auth/QueryParamAuth.php
* @since 2.0 */ class QueryParamAuth extends AuthMethod { /** * @var string the parameter name for passing the access token */ public $tokenParam = 'access-token'; /** * {@inheritdoc} */ public function authenticate($user, $request, $response) { $accessToken = $request->get($this->tokenParam); if (is_string($accessToken)) { $identity = $user->loginByAccessToken($accessToken, get_class($this)); if ($identity !== null) { return $identity; } } if ($accessToken !== null) { $this->handleFailure($response); } return null; } }