35 $this->parameters[
'URL_PARAMETERS'][
'force_confirm'] =
'yes';
45 if (!Loader::includeModule(
'socialservices'))
49 $instance =
new static(
$type);
92 if (!empty($this->parameters[
'URL_PARAMETERS']))
94 $authorizeData[
'urlParameters'] = $this->parameters[
'URL_PARAMETERS'];
99 return $uri->addParams($authorizeData)->getLocator();
117 if (!$isUseCache || !$this->data || count($this->data) == 0)
131 $this->data = array();
136 $existedAuthData[
'proxy_client_id'],
137 $existedAuthData[
'engine_code']
153 return $this->service::getEngineCode($this->type);
194 return $this->service::canUseMultipleClients();
212 foreach ($clients as $client)
214 if ($client[
'proxy_client_id'] == $clientId)
230 static function ($item) :
bool {
231 return $item[
'access_token'] <>
'';
242 $clientId = $this->service->getClientId();
255 foreach ($clients as $client)
259 return $client[
'proxy_client_id'];
static handleEvent($clientId, $engineCode)
static create($type, IService $service=null)
getAuthData($isUseCache=true)
setParameters(array $parameters=[])
setService(IService $service)
getAuthorizedClientsList()
getAuthDataSingle($isUseCache=true)
static getEngineCode($type)
static canUseMultipleClients()
const CLIENT_TYPE_COMPATIBLE
static getAuthorizeLink()
static getAuth(string $engineCode)
static clearAuthForClient($client, $localOnly=false)
static getClientList($engineCode=false)
static clearAuth($engineCode, $localOnly=false)
static getAuthorizeData($engine, $clientType=false)
const CLIENT_TYPE_MULTIPLE