Поделиться через


UserToken class

Класс, представляющий UserToken.

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

UserToken(TokenApiClientContext)

Создайте UserToken.

Методы

exchangeAsync(string, string, string, TokenExchangeRequest, RequestOptionsBase)
exchangeAsync(string, string, string, TokenExchangeRequest, RequestOptionsBase, ServiceCallback<any>)
exchangeAsync(string, string, string, TokenExchangeRequest, ServiceCallback<any>)
getAadTokens(string, string, AadResourceUrls, ServiceCallback<[key: string]: TokenResponse>)
getAadTokens(string, string, AadResourceUrls, UserTokenGetAadTokensOptionalParams)
getAadTokens(string, string, AadResourceUrls, UserTokenGetAadTokensOptionalParams, ServiceCallback<[key: string]: TokenResponse>)
getToken(string, string, ServiceCallback<TokenResponse>)
getToken(string, string, UserTokenGetTokenOptionalParams)
getToken(string, string, UserTokenGetTokenOptionalParams, ServiceCallback<TokenResponse>)
getTokenStatus(string, ServiceCallback<TokenStatus[]>)
getTokenStatus(string, UserTokenGetTokenStatusOptionalParams)
getTokenStatus(string, UserTokenGetTokenStatusOptionalParams, ServiceCallback<TokenStatus[]>)
signOut(string, ServiceCallback<any>)
signOut(string, UserTokenSignOutOptionalParams)
signOut(string, UserTokenSignOutOptionalParams, ServiceCallback<any>)

Сведения о конструкторе

UserToken(TokenApiClientContext)

Создайте UserToken.

new UserToken(client: TokenApiClientContext)

Параметры

client
TokenApiClientContext

Ссылка на клиент службы.

Сведения о методе

exchangeAsync(string, string, string, TokenExchangeRequest, RequestOptionsBase)

function exchangeAsync(userId: string, connectionName: string, channelId: string, exchangeRequest: TokenExchangeRequest, options?: RequestOptionsBase): Promise<Models.UserTokenExchangeAsyncResponse>

Параметры

userId

string

connectionName

string

channelId

string

exchangeRequest

TokenExchangeRequest

options

RequestOptionsBase

Возвращаемое значение

Promise<Models.UserTokenExchangeAsyncResponse>

Обещание<Models.UserTokenExchangeAsyncResponse>

exchangeAsync(string, string, string, TokenExchangeRequest, RequestOptionsBase, ServiceCallback<any>)

function exchangeAsync(userId: string, connectionName: string, channelId: string, exchangeRequest: TokenExchangeRequest, options: RequestOptionsBase, callback: ServiceCallback<any>)

Параметры

userId

string

connectionName

string

channelId

string

exchangeRequest

TokenExchangeRequest

options

RequestOptionsBase

Необязательные параметры

callback

ServiceCallback<any>

Обратный вызов

exchangeAsync(string, string, string, TokenExchangeRequest, ServiceCallback<any>)

function exchangeAsync(userId: string, connectionName: string, channelId: string, exchangeRequest: TokenExchangeRequest, callback: ServiceCallback<any>)

Параметры

userId

string

connectionName

string

channelId

string

exchangeRequest

TokenExchangeRequest

callback

ServiceCallback<any>

Обратный вызов

getAadTokens(string, string, AadResourceUrls, ServiceCallback<[key: string]: TokenResponse>)

function getAadTokens(userId: string, connectionName: string, aadResourceUrls: AadResourceUrls, callback: ServiceCallback<[key: string]: TokenResponse>)

Параметры

userId

string

connectionName

string

aadResourceUrls
AadResourceUrls
callback

ServiceCallback<[key: string]: TokenResponse>

Обратный вызов

getAadTokens(string, string, AadResourceUrls, UserTokenGetAadTokensOptionalParams)

function getAadTokens(userId: string, connectionName: string, aadResourceUrls: AadResourceUrls, options?: UserTokenGetAadTokensOptionalParams): Promise<Models.UserTokenGetAadTokensResponse>

Параметры

userId

string

connectionName

string

aadResourceUrls
AadResourceUrls

Возвращаемое значение

Promise<Models.UserTokenGetAadTokensResponse>

Обещание<Models.UserTokenGetAadTokensResponse>

getAadTokens(string, string, AadResourceUrls, UserTokenGetAadTokensOptionalParams, ServiceCallback<[key: string]: TokenResponse>)

function getAadTokens(userId: string, connectionName: string, aadResourceUrls: AadResourceUrls, options: UserTokenGetAadTokensOptionalParams, callback: ServiceCallback<[key: string]: TokenResponse>)

Параметры

userId

string

connectionName

string

aadResourceUrls
AadResourceUrls
options
UserTokenGetAadTokensOptionalParams

Необязательные параметры

callback

ServiceCallback<[key: string]: TokenResponse>

Обратный вызов

getToken(string, string, ServiceCallback<TokenResponse>)

function getToken(userId: string, connectionName: string, callback: ServiceCallback<TokenResponse>)

Параметры

userId

string

connectionName

string

callback

ServiceCallback<TokenResponse>

Обратный вызов

getToken(string, string, UserTokenGetTokenOptionalParams)

function getToken(userId: string, connectionName: string, options?: UserTokenGetTokenOptionalParams): Promise<Models.UserTokenGetTokenResponse>

Параметры

userId

string

connectionName

string

Возвращаемое значение

Promise<Models.UserTokenGetTokenResponse>

Обещание<Models.UserTokenGetTokenResponse>

getToken(string, string, UserTokenGetTokenOptionalParams, ServiceCallback<TokenResponse>)

function getToken(userId: string, connectionName: string, options: UserTokenGetTokenOptionalParams, callback: ServiceCallback<TokenResponse>)

Параметры

userId

string

connectionName

string

options
UserTokenGetTokenOptionalParams

Необязательные параметры

callback

ServiceCallback<TokenResponse>

Обратный вызов

getTokenStatus(string, ServiceCallback<TokenStatus[]>)

function getTokenStatus(userId: string, callback: ServiceCallback<TokenStatus[]>)

Параметры

userId

string

callback

ServiceCallback<TokenStatus[]>

Обратный вызов

getTokenStatus(string, UserTokenGetTokenStatusOptionalParams)

function getTokenStatus(userId: string, options?: UserTokenGetTokenStatusOptionalParams): Promise<Models.UserTokenGetTokenStatusResponse>

Параметры

userId

string

Возвращаемое значение

Promise<Models.UserTokenGetTokenStatusResponse>

Обещание<Models.UserTokenGetTokenStatusResponse>

getTokenStatus(string, UserTokenGetTokenStatusOptionalParams, ServiceCallback<TokenStatus[]>)

function getTokenStatus(userId: string, options: UserTokenGetTokenStatusOptionalParams, callback: ServiceCallback<TokenStatus[]>)

Параметры

userId

string

options
UserTokenGetTokenStatusOptionalParams

Необязательные параметры

callback

ServiceCallback<TokenStatus[]>

Обратный вызов

signOut(string, ServiceCallback<any>)

function signOut(userId: string, callback: ServiceCallback<any>)

Параметры

userId

string

callback

ServiceCallback<any>

Обратный вызов

signOut(string, UserTokenSignOutOptionalParams)

function signOut(userId: string, options?: UserTokenSignOutOptionalParams): Promise<Models.UserTokenSignOutResponse>

Параметры

userId

string

Возвращаемое значение

Promise<Models.UserTokenSignOutResponse>

Обещание<Models.UserTokenSignOutResponse>

signOut(string, UserTokenSignOutOptionalParams, ServiceCallback<any>)

function signOut(userId: string, options: UserTokenSignOutOptionalParams, callback: ServiceCallback<any>)

Параметры

userId

string

options
UserTokenSignOutOptionalParams

Необязательные параметры

callback

ServiceCallback<any>

Обратный вызов