UserToken class
Classe représentant un UserToken.
Constructeurs
User |
Créez un UserToken. |
Méthodes
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
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
- options
- UserTokenGetTokenOptionalParams
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
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
- options
- UserTokenSignOutOptionalParams
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