UserToken class
Clase que representa un UserToken.
Constructores
User |
Cree un UserToken. |
Métodos
Detalles del constructor
UserToken(TokenApiClientContext)
Cree un UserToken.
new UserToken(client: TokenApiClientContext)
Parámetros
- client
- TokenApiClientContext
Referencia al cliente de servicio.
Detalles del 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
Devoluciones
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
Los parámetros opcionales
- callback
-
ServiceCallback<any>
Devolución de llamada
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>
Devolución de llamada
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>
Devolución de llamada
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
Devoluciones
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
Los parámetros opcionales
- callback
-
ServiceCallback<[key: string]: TokenResponse>
Devolución de llamada
getToken(string, string, ServiceCallback<TokenResponse>)
function getToken(userId: string, connectionName: string, callback: ServiceCallback<TokenResponse>)
Parámetros
- userId
-
string
- connectionName
-
string
- callback
-
ServiceCallback<TokenResponse>
Devolución de llamada
getToken(string, string, UserTokenGetTokenOptionalParams)
function getToken(userId: string, connectionName: string, options?: UserTokenGetTokenOptionalParams): Promise<Models.UserTokenGetTokenResponse>
Parámetros
- userId
-
string
- connectionName
-
string
- options
- UserTokenGetTokenOptionalParams
Devoluciones
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
Los parámetros opcionales
- callback
-
ServiceCallback<TokenResponse>
Devolución de llamada
getTokenStatus(string, ServiceCallback<TokenStatus[]>)
function getTokenStatus(userId: string, callback: ServiceCallback<TokenStatus[]>)
Parámetros
- userId
-
string
- callback
-
ServiceCallback<TokenStatus[]>
Devolución de llamada
getTokenStatus(string, UserTokenGetTokenStatusOptionalParams)
function getTokenStatus(userId: string, options?: UserTokenGetTokenStatusOptionalParams): Promise<Models.UserTokenGetTokenStatusResponse>
Parámetros
- userId
-
string
Devoluciones
Promise<Models.UserTokenGetTokenStatusResponse>
Promise<Models.UserTokenGetTokenStatusResponse>
getTokenStatus(string, UserTokenGetTokenStatusOptionalParams, ServiceCallback<TokenStatus[]>)
function getTokenStatus(userId: string, options: UserTokenGetTokenStatusOptionalParams, callback: ServiceCallback<TokenStatus[]>)
Parámetros
- userId
-
string
Los parámetros opcionales
- callback
-
ServiceCallback<TokenStatus[]>
Devolución de llamada
signOut(string, ServiceCallback<any>)
function signOut(userId: string, callback: ServiceCallback<any>)
Parámetros
- userId
-
string
- callback
-
ServiceCallback<any>
Devolución de llamada
signOut(string, UserTokenSignOutOptionalParams)
function signOut(userId: string, options?: UserTokenSignOutOptionalParams): Promise<Models.UserTokenSignOutResponse>
Parámetros
- userId
-
string
- options
- UserTokenSignOutOptionalParams
Devoluciones
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
Los parámetros opcionales
- callback
-
ServiceCallback<any>
Devolución de llamada