UserToken class
代表UserToken的類別。
建構函式
User |
建立 UserToken。 |
方法
建構函式詳細資料
UserToken(TokenApiClientContext)
建立 UserToken。
new UserToken(client: TokenApiClientContext)
參數
- client
- TokenApiClientContext
服務客戶端的參考。
方法詳細資料
exchangeAsync(string, string, string, TokenExchangeRequest, RequestOptionsBase)
function exchangeAsync(userId: string, connectionName: string, channelId: string, exchangeRequest: TokenExchangeRequest, options?: RequestOptionsBase): Promise<Models.UserTokenExchangeAsyncResponse>
參數
- userId
-
string
- connectionName
-
string
- channelId
-
string
- exchangeRequest
-
TokenExchangeRequest
- options
-
RequestOptionsBase
傳回
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>)
參數
- userId
-
string
- connectionName
-
string
- channelId
-
string
- exchangeRequest
-
TokenExchangeRequest
- options
-
RequestOptionsBase
選擇性參數
- callback
-
ServiceCallback<any>
回呼
exchangeAsync(string, string, string, TokenExchangeRequest, ServiceCallback<any>)
function exchangeAsync(userId: string, connectionName: string, channelId: string, exchangeRequest: TokenExchangeRequest, callback: ServiceCallback<any>)
參數
- userId
-
string
- connectionName
-
string
- channelId
-
string
- exchangeRequest
-
TokenExchangeRequest
- callback
-
ServiceCallback<any>
回呼
getAadTokens(string, string, AadResourceUrls, ServiceCallback<[key: string]: TokenResponse>)
function getAadTokens(userId: string, connectionName: string, aadResourceUrls: AadResourceUrls, callback: ServiceCallback<[key: string]: TokenResponse>)
參數
- userId
-
string
- connectionName
-
string
- aadResourceUrls
- AadResourceUrls
- callback
-
ServiceCallback<[key: string]: TokenResponse>
回呼
getAadTokens(string, string, AadResourceUrls, UserTokenGetAadTokensOptionalParams)
function getAadTokens(userId: string, connectionName: string, aadResourceUrls: AadResourceUrls, options?: UserTokenGetAadTokensOptionalParams): Promise<Models.UserTokenGetAadTokensResponse>
參數
- userId
-
string
- connectionName
-
string
- aadResourceUrls
- AadResourceUrls
傳回
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>)
參數
- userId
-
string
- connectionName
-
string
- aadResourceUrls
- AadResourceUrls
選擇性參數
- callback
-
ServiceCallback<[key: string]: TokenResponse>
回呼
getToken(string, string, ServiceCallback<TokenResponse>)
function getToken(userId: string, connectionName: string, callback: ServiceCallback<TokenResponse>)
參數
- userId
-
string
- connectionName
-
string
- callback
-
ServiceCallback<TokenResponse>
回呼
getToken(string, string, UserTokenGetTokenOptionalParams)
function getToken(userId: string, connectionName: string, options?: UserTokenGetTokenOptionalParams): Promise<Models.UserTokenGetTokenResponse>
參數
- userId
-
string
- connectionName
-
string
- options
- UserTokenGetTokenOptionalParams
傳回
Promise<Models.UserTokenGetTokenResponse>
Promise<Models.UserTokenGetTokenResponse>
getToken(string, string, UserTokenGetTokenOptionalParams, ServiceCallback<TokenResponse>)
function getToken(userId: string, connectionName: string, options: UserTokenGetTokenOptionalParams, callback: ServiceCallback<TokenResponse>)
參數
- userId
-
string
- connectionName
-
string
- options
- UserTokenGetTokenOptionalParams
選擇性參數
- callback
-
ServiceCallback<TokenResponse>
回呼
getTokenStatus(string, ServiceCallback<TokenStatus[]>)
function getTokenStatus(userId: string, callback: ServiceCallback<TokenStatus[]>)
參數
- userId
-
string
- callback
-
ServiceCallback<TokenStatus[]>
回呼
getTokenStatus(string, UserTokenGetTokenStatusOptionalParams)
function getTokenStatus(userId: string, options?: UserTokenGetTokenStatusOptionalParams): Promise<Models.UserTokenGetTokenStatusResponse>
參數
- userId
-
string
傳回
Promise<Models.UserTokenGetTokenStatusResponse>
Promise<Models.UserTokenGetTokenStatusResponse>
getTokenStatus(string, UserTokenGetTokenStatusOptionalParams, ServiceCallback<TokenStatus[]>)
function getTokenStatus(userId: string, options: UserTokenGetTokenStatusOptionalParams, callback: ServiceCallback<TokenStatus[]>)
參數
- userId
-
string
選擇性參數
- callback
-
ServiceCallback<TokenStatus[]>
回呼
signOut(string, ServiceCallback<any>)
function signOut(userId: string, callback: ServiceCallback<any>)
參數
- userId
-
string
- callback
-
ServiceCallback<any>
回呼
signOut(string, UserTokenSignOutOptionalParams)
function signOut(userId: string, options?: UserTokenSignOutOptionalParams): Promise<Models.UserTokenSignOutResponse>
參數
- userId
-
string
- options
- UserTokenSignOutOptionalParams
傳回
Promise<Models.UserTokenSignOutResponse>
Promise<Models.UserTokenSignOutResponse>
signOut(string, UserTokenSignOutOptionalParams, ServiceCallback<any>)
function signOut(userId: string, options: UserTokenSignOutOptionalParams, callback: ServiceCallback<any>)
參數
- userId
-
string
- options
- UserTokenSignOutOptionalParams
選擇性參數
- callback
-
ServiceCallback<any>
回呼