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

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

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

Поля данных

const SERVICE_ID = "Office365"
const AUTH_URL = "https://login.microsoftonline.com/common/oauth2/v2.0/authorize"
const TOKEN_URL = "https://login.microsoftonline.com/common/oauth2/v2.0/token"
const VERSION = "/v1.0"
const CONTACTS_URL = "/me/"
const REDIRECT_URI = "/bitrix/tools/oauth/office365.php"
Поля данных унаследованные от CSocServOAuthTransport
const SERVICE_ID = "generic"

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

 $resource = "https://graph.microsoft.com"
 $scope
Защищенные данные унаследованные от CSocServOAuthTransport
 $appID
 $appSecret
 $code = false
 $access_token = false
 $accessTokenExpires = 0
 $refresh_token = ''
 $scope = array()
 $userId

Дополнительные унаследованные члены

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

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

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

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

◆ __construct()

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

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

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

Методы

◆ GetAccessToken()

GetAccessToken ( $redirect_uri = false)

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

◆ GetAuthUrl()

GetAuthUrl ( $redirect_uri,
$state = '' )

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

◆ GetCurrentUser()

GetCurrentUser ( )

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

◆ getNewAccessToken()

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

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

◆ getRedirectUri()

getRedirectUri ( )

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

◆ getResource()

getResource ( )

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

◆ getScopeEncode()

getScopeEncode ( )

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

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

◆ getTenant()

getTenant ( )

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

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

Поля

◆ $resource

$resource = "https://graph.microsoft.com"
protected

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

◆ $scope

$scope
protected
Инициализатор
= [
"User.Read",
"offline_access",
]

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

◆ AUTH_URL

const AUTH_URL = "https://login.microsoftonline.com/common/oauth2/v2.0/authorize"

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

◆ CONTACTS_URL

const CONTACTS_URL = "/me/"

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

◆ REDIRECT_URI

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

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

◆ SERVICE_ID

const SERVICE_ID = "Office365"

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

◆ TOKEN_URL

const TOKEN_URL = "https://login.microsoftonline.com/common/oauth2/v2.0/token"

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

◆ VERSION

const VERSION = "/v1.0"

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


Объявления и описания членов класса находятся в файле: