CakeDC\Users\Controller\Traits\LoginTrait::socialLogin PHP Метод

socialLogin() публичный Метод

Social login
public socialLogin ( ) : array
Результат array
    public function socialLogin()
    {
        $socialProvider = $this->request->param('provider');
        $socialUser = $this->request->session()->read(Configure::read('Users.Key.Session.social'));
        if (empty($socialProvider) && empty($socialUser)) {
            throw new NotFoundException();
        }
        $user = $this->Auth->user();
        return $this->_afterIdentifyUser($user, true);
    }