protected function _handleLoginAction(ServerRequest $request, Response $response)
    {
        $request->allowMethod($this->getConfig('requestMethod'));

        $providerName = $request->getParam('provider');
        $provider = $this->_getService($request)->getProvider($providerName);
        $authUrl = $provider->makeAuthUrl();

        $this->_setRedirectUrl($request);

        return $response->withLocation($authUrl);
    }
protected function _handleLoginAction(ServerRequest $request, Response $response)
    {
        $request->allowMethod($this->getConfig('requestMethod'));

        $providerName = $request->getParam('provider');
        $provider = $this->_getService($request)->getProvider($providerName);
        $authUrl = $provider->makeAuthUrl();

        $this->_setRedirectUrl($request);

        return $response->withLocation($authUrl);
    }
protected function _handleLoginAction ( ServerRequest $ request , Response $ response ) { $ request -> allowMethod ( $ this -> getConfig ( 'requestMethod' ) ) ; $ providerName = $ request -> getParam ( 'provider' ) ; $ provider = $ this -> _getService ( $ request ) -> getProvider ( $ providerName ) ; $ authUrl = $ provider -> makeAuthUrl ( ) ; $ this -> _setRedirectUrl ( $ request ) ; return $ response -> withLocation ( $ authUrl ) ; }
Handle login action, initiate authentication process.

@param \Cake\Http\ServerRequest $request The request.
@param \Cake\Http\Response $response The response.

@return \Cake\Http\Response A response.
Handle login action initiate authentication process .