yii2 GoogleOAuth成功重定向到404

时间:2016-08-03 00:26:39

标签: php yii2 google-oauth

我正在使用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)

0 个答案:

没有答案