UNPKG

@mindconnect/mindconnect-nodejs

Version:

NodeJS Library for MindSphere Connectivity - TypeScript SDK for MindSphere - MindSphere Command Line Interface - MindSphere Development Proxy

40 lines (39 loc) 1.25 kB
import { AuthBase } from "./auth-base"; import { TokenRotation } from "./mindconnect-base"; /** * Token Manager Authentication * * @see https://developer.mindsphere.io/apis/exchange-tokenmanager/api-tokenmanager-overview.html * * @export * @class TokenManagerAuth * @extends {AuthBase} * @implements {TokenRotation} */ export declare class TokenManagerAuth extends AuthBase implements TokenRotation { protected _gateway: string; protected _basicAuth: string; protected _hostTenant: string; protected _userTenant: string; protected _appName: string; protected _appVersion: string; protected AcquireToken(): Promise<boolean>; /** * Returns the current agent token. * This token can be used in e.g. in Postman to call mindsphere APIs. * * @returns {(Promise<string>)} * * @memberOf AgentAuth */ GetToken(): Promise<string>; /** * Creates an instance of TokenManagerAuth. * @param {string} _gateway * @param {string} _basicAuth * @param {string} _hostTenant * * @memberOf TokenManagerAuth */ constructor(_gateway: string, _basicAuth: string, _hostTenant: string, _userTenant: string, _appName?: string, _appVersion?: string); }