protected function getOAuthServiceName()
    {
        $serviceName = $this->getPayloadData('service', $this->request->getParameter('service'));

        if (empty($serviceName)) {
            $state = $this->getPayloadData('state', $this->request->getParameter('state'));
            if (empty($state)) {
                $state = $this->getPayloadData('oauth_token', $this->request->getParameter('oauth_token'));
            }
            if (!empty($state)) {
                $key = BaseOAuthService::CACHE_KEY_PREFIX . $state;
                $serviceName = \Cache::pull($key);
            }
        }

        return $serviceName;
    }
protected function getOAuthServiceName()
    {
        $serviceName = $this->getPayloadData('service', $this->request->getParameter('service'));

        if (empty($serviceName)) {
            $state = $this->getPayloadData('state', $this->request->getParameter('state'));
            if (empty($state)) {
                $state = $this->getPayloadData('oauth_token', $this->request->getParameter('oauth_token'));
            }
            if (!empty($state)) {
                $key = BaseOAuthService::CACHE_KEY_PREFIX . $state;
                $serviceName = \Cache::pull($key);
            }
        }

        return $serviceName;
    }
protected function getOAuthServiceName ( ) { $ serviceName = $ this -> getPayloadData ( 'service' , $ this -> request -> getParameter ( 'service' ) ) ; if ( empty ( $ serviceName ) ) { $ state = $ this -> getPayloadData ( 'state' , $ this -> request -> getParameter ( 'state' ) ) ; if ( empty ( $ state ) ) { $ state = $ this -> getPayloadData ( 'oauth_token' , $ this -> request -> getParameter ( 'oauth_token' ) ) ; } if ( ! empty ( $ state ) ) { $ key = BaseOAuthService :: CACHE_KEY_PREFIX . $ state ; $ serviceName = \ Cache :: pull ( $ key ) ; } } return $ serviceName ; }
Retrieves OAuth service name from request param, payload, or using state identifier.

@return mixed
Retrieves OAuth service name from request param payload or using state identifier .