我正在使用yii2-authclient进行用户登录
'authClientCollection' => [
'class' => 'yii\authclient\Collection',
'clients' => [
'google' => [
'class' => 'yii\authclient\clients\GoogleOAuth',
'clientId' => '*********',
'clientSecret' => '*********',
'returnUrl'=>'http://mywebsite/frontend/web/index.php?r=site/auth?authclient=google',
],
并在控制器'auth' => [
'class' => 'yii\authclient\AuthAction',
'successCallback' => [$this, 'successCallback'],
但是从谷歌重定向到http://mywebsite/frontend/web/index.php?r=site/auth?authclient=google后 它显示错误 找不到(#404)