title: Yii 2 - authclient doesn't call onAuthSuccess
body: <p>I am using Yii authclient to use social login. I had set everything as it is defined in <a href="https://github.com/yiisoft/yii2-authclient/blob/master/docs/guide/quick-start.md" rel="nofollow noreferrer">docs</a> but when I try to login with google it does not call onAuthSuccess method. When I try to login it just redirects me to <em>returnUrl</em> but not authenticated. 
  Here is  my code;  </p>
  
  <p><strong>config/main.php</strong></p>
  
  <pre><code> 'authClientCollection' =&gt; [
          'class' =&gt; \yii\authclient\Collection::class,
          'clients' =&gt; [
              'google' =&gt; [
                  'class' =&gt; \yii\authclient\clients\Google::class,
                  'clientId' =&gt; *********, //changed for issue purpose
                  'clientSecret' =&gt; *********, //changed for issue purpose
                  'returnUrl' =&gt; 'http://localhost/site/landing',
              ],
          ],
      ]
  </code></pre>
  
  <p><strong>controllers/SiteController</strong></p>
  
  <pre><code>    public function behaviors()
  {
      return [
          'access' =&gt; [
              'class' =&gt; AccessControl::className(),
              'only' =&gt; ['logout', 'signup', 'auth'],
              'rules' =&gt; [
                  [
                      'actions' =&gt; ['signup', 'auth'],
                      'allow' =&gt; true,
                      'roles' =&gt; ['?'],
                  ],
                  [
                      'actions' =&gt; ['logout'],
                      'allow' =&gt; true,
                      'roles' =&gt; ['@'],
                  ],
              ],
          ],
          'verbs' =&gt; [
              'class' =&gt; VerbFilter::className(),
              'actions' =&gt; [
                  'logout' =&gt; ['post'],
                  'create-storyboard' =&gt; ['post'],
              ],
          ],
      ];
  }
  
  /**
   * {@inheritdoc}
   */
  public function actions()
  {
      return [
          'error' =&gt; [
              'class' =&gt; 'yii\web\ErrorAction',
          ],
          'captcha' =&gt; [
              'class' =&gt; 'yii\captcha\CaptchaAction',
              'fixedVerifyCode' =&gt; YII_ENV_TEST ? 'testme' : null,
          ],
          'auth' =&gt; [
              'class' =&gt; 'yii\authclient\AuthAction',
              'successCallback' =&gt; [$this, 'onAuthSuccess'],
          ],
      ];
  }
  
  public function onAuthSuccess($client)
  {
      (new AuthHandler($client))-&gt;handle();
  }
  </code></pre>