public function afterAction($action, $result)
    {
        if (Yii::$app->user->isGuest) {
            return $result;
        } else {
            return $this->finishAuthorization();
        }
    }
public function afterAction($action, $result)
    {
        if (Yii::$app->user->isGuest) {
            return $result;
        } else {
            return $this->finishAuthorization();
        }
    }
public function afterAction ( $ action , $ result ) { if ( Yii :: $ app -> user -> isGuest ) { return $ result ; } else { return $ this -> finishAuthorization ( ) ; } }
If user is logged on, do oauth login immediatly,
continue authorization in the another case
@param \yii\base\Action $action
@param mixed $result
@return mixed
@throws Exception
If user is logged on do oauth login immediatly continue authorization in the another case