UserToken class
Classe que representa um UserToken.
Construtores
User |
Criar um UserToken. |
Métodos
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
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
- options
- UserTokenGetTokenOptionalParams
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
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
- options
- UserTokenSignOutOptionalParams
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