1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс CGoogleOAuthInterface
Граф наследования:CGoogleOAuthInterface:
CSocServOAuthTransport CGooglePlusOAuthInterface CGoogleProxyOAuthInterface

Открытые члены

 __construct ($appID=false, $appSecret=false, $code=false)
 addScope ($scope)
 removeScope (string $scope)
 getScopeEncode ()
 getResult ()
 getError ()
 GetAuthUrl ($redirect_uri, $state='', $apiKey='')
 setIdTokenAuth (string $tokenId)
 GetAccessToken ($redirect_uri=false)
 GetCurrentUser ()
 GetAppInfo ()
 GetCurrentUserFriends ($limit, &$next)
 getNewAccessToken ($refreshToken=false, $userId=0, $save=false)
 getRedirectUri ()
Открытые члены унаследованные от CSocServOAuthTransport
 getAppID ()
 getAppSecret ()
 getAccessTokenExpires ()
 setAccessTokenExpires ($accessTokenExpires)
 getToken ()
 setToken ($access_token)
 setRefreshToken ($refresh_token)
 getRefreshToken ()
 setScope ($scope)
 getScope ()
 setCode ($code)
 setUser ($userId)
 deleteStorageTokens ()
 checkAccessToken ()

Поля данных

const SERVICE_ID = "GoogleOAuth"
const CERTS_URL = "https://www.googleapis.com/oauth2/v3/certs"
const JWT_ALG = ["RS256"]
const AUTH_URL = "https://accounts.google.com/o/oauth2/auth"
const TOKEN_URL = "https://accounts.google.com/o/oauth2/token"
const CONTACTS_URL = "https://www.googleapis.com/oauth2/v1/userinfo"
const FRIENDS_URL = "https://www.google.com/m8/feeds/contacts/default/full"
const TOKENINFO_URL = "https://www.googleapis.com/oauth2/v2/tokeninfo"
const REDIRECT_URI = "/bitrix/tools/oauth/google.php"
Поля данных унаследованные от CSocServOAuthTransport
const SERVICE_ID = "generic"

Защищенные члены

 getOptionNameForScopes ()
 checkSavedScope ()
 saveScope ()
Защищенные члены унаследованные от CSocServOAuthTransport
 getStorageTokens ()
 getDecodedJson ($url, $postData=null)

Защищенные данные

 $standardScope
 $scope = array()
 $arResult = array()
string $idTokenAuth = null
array $fetchedPublicKeys = null
Защищенные данные унаследованные от CSocServOAuthTransport
 $appID
 $appSecret
 $code = false
 $access_token = false
 $accessTokenExpires = 0
 $refresh_token = ''
 $scope = array()
 $userId

Подробное описание

См. определение в файле google.php строка 422

Конструктор(ы)

◆ __construct()

__construct ( $appID = false,
$appSecret = false,
$code = false )

Переопределяет метод предка CSocServOAuthTransport.

Переопределяется в CGoogleProxyOAuthInterface.

См. определение в файле google.php строка 449

Методы

◆ addScope()

addScope ( $scope)

Переопределяет метод предка CSocServOAuthTransport.

См. определение в файле google.php строка 492

◆ checkSavedScope()

checkSavedScope ( )
protected

См. определение в файле google.php строка 473

◆ GetAccessToken()

GetAccessToken ( $redirect_uri = false)

Переопределяется в CGoogleProxyOAuthInterface.

См. определение в файле google.php строка 593

◆ GetAppInfo()

GetAppInfo ( )

См. определение в файле google.php строка 691

◆ GetAuthUrl()

GetAuthUrl ( $redirect_uri,
$state = '',
$apiKey = '' )

См. определение в файле google.php строка 525

◆ GetCurrentUser()

GetCurrentUser ( )

См. определение в файле google.php строка 667

◆ GetCurrentUserFriends()

GetCurrentUserFriends ( $limit,
& $next )

См. определение в файле google.php строка 720

◆ getError()

getError ( )

См. определение в файле google.php строка 518

◆ getNewAccessToken()

getNewAccessToken ( $refreshToken = false,
$userId = 0,
$save = false )

Переопределяется в CGoogleProxyOAuthInterface.

См. определение в файле google.php строка 843

◆ getOptionNameForScopes()

getOptionNameForScopes ( )
protected

См. определение в файле google.php строка 468

◆ getRedirectUri()

getRedirectUri ( )

Переопределяется в CGoogleProxyOAuthInterface.

См. определение в файле google.php строка 890

◆ getResult()

getResult ( )

Переопределяет метод предка CSocServOAuthTransport.

См. определение в файле google.php строка 513

◆ getScopeEncode()

getScopeEncode ( )

Переопределяет метод предка CSocServOAuthTransport.

См. определение в файле google.php строка 508

◆ removeScope()

removeScope ( string $scope)

Переопределяет метод предка CSocServOAuthTransport.

См. определение в файле google.php строка 501

◆ saveScope()

saveScope ( )
protected

См. определение в файле google.php строка 486

◆ setIdTokenAuth()

setIdTokenAuth ( string $tokenId)

См. определение в файле google.php строка 539

Поля

◆ $arResult

$arResult = array()
protected

См. определение в файле google.php строка 444

◆ $fetchedPublicKeys

array $fetchedPublicKeys = null
protected

См. определение в файле google.php строка 447

◆ $idTokenAuth

string $idTokenAuth = null
protected

См. определение в файле google.php строка 446

◆ $scope

$scope = array()
protected

См. определение в файле google.php строка 442

◆ $standardScope

$standardScope
protected
Инициализатор
'https://www.googleapis.com/auth/userinfo.email',
'https://www.googleapis.com/auth/userinfo.profile',
)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804

См. определение в файле google.php строка 437

◆ AUTH_URL

const AUTH_URL = "https://accounts.google.com/o/oauth2/auth"

См. определение в файле google.php строка 429

◆ CERTS_URL

const CERTS_URL = "https://www.googleapis.com/oauth2/v3/certs"

См. определение в файле google.php строка 426

◆ CONTACTS_URL

const CONTACTS_URL = "https://www.googleapis.com/oauth2/v1/userinfo"

См. определение в файле google.php строка 431

◆ FRIENDS_URL

const FRIENDS_URL = "https://www.google.com/m8/feeds/contacts/default/full"

См. определение в файле google.php строка 432

◆ JWT_ALG

const JWT_ALG = ["RS256"]

См. определение в файле google.php строка 427

◆ REDIRECT_URI

const REDIRECT_URI = "/bitrix/tools/oauth/google.php"

См. определение в файле google.php строка 435

◆ SERVICE_ID

const SERVICE_ID = "GoogleOAuth"

См. определение в файле google.php строка 424

◆ TOKEN_URL

const TOKEN_URL = "https://accounts.google.com/o/oauth2/token"

См. определение в файле google.php строка 430

◆ TOKENINFO_URL

const TOKENINFO_URL = "https://www.googleapis.com/oauth2/v2/tokeninfo"

См. определение в файле google.php строка 433


Объявления и описания членов класса находятся в файле:
  • C:/bitrix/modules/socialservices/classes/general/google.php