Partager via


UserToken class

Classe représentant un UserToken.

Constructeurs

UserToken(TokenApiClientContext)

Créez un UserToken.

Méthodes

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

Détails du constructeur

UserToken(TokenApiClientContext)

Créez un UserToken.

new UserToken(client: TokenApiClientContext)

Paramètres

client
TokenApiClientContext

Référence au client de service.

Détails de la méthode

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

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

Paramètres

userId

string

connectionName

string

channelId

string

exchangeRequest

TokenExchangeRequest

options

RequestOptionsBase

Retours

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

Paramètres

userId

string

connectionName

string

channelId

string

exchangeRequest

TokenExchangeRequest

options

RequestOptionsBase

Paramètres facultatifs

callback

ServiceCallback<any>

Rappel

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

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

Paramètres

userId

string

connectionName

string

channelId

string

exchangeRequest

TokenExchangeRequest

callback

ServiceCallback<any>

Rappel

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

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

Paramètres

userId

string

connectionName

string

aadResourceUrls
AadResourceUrls
callback

ServiceCallback<[key: string]: TokenResponse>

Rappel

getAadTokens(string, string, AadResourceUrls, UserTokenGetAadTokensOptionalParams)

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

Paramètres

userId

string

connectionName

string

aadResourceUrls
AadResourceUrls

Retours

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

Paramètres

userId

string

connectionName

string

aadResourceUrls
AadResourceUrls
options
UserTokenGetAadTokensOptionalParams

Paramètres facultatifs

callback

ServiceCallback<[key: string]: TokenResponse>

Rappel

getToken(string, string, ServiceCallback<TokenResponse>)

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

Paramètres

userId

string

connectionName

string

callback

ServiceCallback<TokenResponse>

Rappel

getToken(string, string, UserTokenGetTokenOptionalParams)

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

Paramètres

userId

string

connectionName

string

Retours

Promise<Models.UserTokenGetTokenResponse>

Promise<Models.UserTokenGetTokenResponse>

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

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

Paramètres

userId

string

connectionName

string

options
UserTokenGetTokenOptionalParams

Paramètres facultatifs

callback

ServiceCallback<TokenResponse>

Rappel

getTokenStatus(string, ServiceCallback<TokenStatus[]>)

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

Paramètres

userId

string

callback

ServiceCallback<TokenStatus[]>

Rappel

getTokenStatus(string, UserTokenGetTokenStatusOptionalParams)

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

Paramètres

userId

string

Retours

Promise<Models.UserTokenGetTokenStatusResponse>

Promise<Models.UserTokenGetTokenStatusResponse>

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

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

Paramètres

userId

string

options
UserTokenGetTokenStatusOptionalParams

Paramètres facultatifs

callback

ServiceCallback<TokenStatus[]>

Rappel

signOut(string, ServiceCallback<any>)

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

Paramètres

userId

string

callback

ServiceCallback<any>

Rappel

signOut(string, UserTokenSignOutOptionalParams)

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

Paramètres

userId

string

Retours

Promise<Models.UserTokenSignOutResponse>

Promise<Models.UserTokenSignOutResponse>

signOut(string, UserTokenSignOutOptionalParams, ServiceCallback<any>)

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

Paramètres

userId

string

options
UserTokenSignOutOptionalParams

Paramètres facultatifs

callback

ServiceCallback<any>

Rappel