Compartilhar via


UserToken class

Classe que representa um UserToken.

Construtores

UserToken(TokenApiClientContext)

Criar um UserToken.

Métodos

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>)

Detalhes do construtor

UserToken(TokenApiClientContext)

Criar um UserToken.

new UserToken(client: TokenApiClientContext)

Parâmetros

client
TokenApiClientContext

Referência ao cliente de serviço.

Detalhes do método

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

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

Parâmetros

userId

string

connectionName

string

channelId

string

exchangeRequest

TokenExchangeRequest

options

RequestOptionsBase

Retornos

Promise<Models.UserTokenExchangeAsyncResponse>

Promise<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>)

Parâmetros

userId

string

connectionName

string

channelId

string

exchangeRequest

TokenExchangeRequest

options

RequestOptionsBase

Os parâmetros opcionais

callback

ServiceCallback<any>

O retorno de chamada

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

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

Parâmetros

userId

string

connectionName

string

channelId

string

exchangeRequest

TokenExchangeRequest

callback

ServiceCallback<any>

O retorno de chamada

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

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

Parâmetros

userId

string

connectionName

string

aadResourceUrls
AadResourceUrls
callback

ServiceCallback<[key: string]: TokenResponse>

O retorno de chamada

getAadTokens(string, string, AadResourceUrls, UserTokenGetAadTokensOptionalParams)

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

Parâmetros

userId

string

connectionName

string

aadResourceUrls
AadResourceUrls

Retornos

Promise<Models.UserTokenGetAadTokensResponse>

Promise<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>)

Parâmetros

userId

string

connectionName

string

aadResourceUrls
AadResourceUrls
options
UserTokenGetAadTokensOptionalParams

Os parâmetros opcionais

callback

ServiceCallback<[key: string]: TokenResponse>

O retorno de chamada

getToken(string, string, ServiceCallback<TokenResponse>)

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

Parâmetros

userId

string

connectionName

string

callback

ServiceCallback<TokenResponse>

O retorno de chamada

getToken(string, string, UserTokenGetTokenOptionalParams)

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

Parâmetros

userId

string

connectionName

string

Retornos

Promise<Models.UserTokenGetTokenResponse>

> Promise<Models.UserTokenGetTokenResponse

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

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

Parâmetros

userId

string

connectionName

string

options
UserTokenGetTokenOptionalParams

Os parâmetros opcionais

callback

ServiceCallback<TokenResponse>

O retorno de chamada

getTokenStatus(string, ServiceCallback<TokenStatus[]>)

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

Parâmetros

userId

string

callback

ServiceCallback<TokenStatus[]>

O retorno de chamada

getTokenStatus(string, UserTokenGetTokenStatusOptionalParams)

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

Parâmetros

userId

string

Retornos

Promise<Models.UserTokenGetTokenStatusResponse>

> Promise<Models.UserTokenGetTokenStatusResponse

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

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

Parâmetros

userId

string

options
UserTokenGetTokenStatusOptionalParams

Os parâmetros opcionais

callback

ServiceCallback<TokenStatus[]>

O retorno de chamada

signOut(string, ServiceCallback<any>)

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

Parâmetros

userId

string

callback

ServiceCallback<any>

O retorno de chamada

signOut(string, UserTokenSignOutOptionalParams)

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

Parâmetros

userId

string

Retornos

Promise<Models.UserTokenSignOutResponse>

> Promise<Models.UserTokenSignOutResponse

signOut(string, UserTokenSignOutOptionalParams, ServiceCallback<any>)

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

Parâmetros

userId

string

options
UserTokenSignOutOptionalParams

Os parâmetros opcionais

callback

ServiceCallback<any>

O retorno de chamada