UNPKG

@mindconnect/mindconnect-nodejs

Version:

MindConnect Library for NodeJS (community based)

33 lines (32 loc) 1.06 kB
import { MindConnectBase, TokenRotation } from "./mindconnect-base"; export declare abstract class CredentialAuth extends MindConnectBase implements TokenRotation { protected _gateway: string; protected _basicAuth: string; protected _tenant: string; protected _accessToken?: any; protected _oauthResponse?: any; protected _publicKey: any; private AcquireToken; private ValidateToken; private getPublicKey; private AcquirePublicKey; RenewToken(): Promise<boolean>; /** * Returns the current agent token. * This token can be used in e.g. in Postman to call mindspher APIs. * * @returns {(Promise<string>)} * * @memberOf AgentAuth */ GetServiceToken(): Promise<string>; /** * Creates an instance of CredentialAuth. * @param {string} _gateway * @param {string} _basicAuth * @param {string} _tenant * * @memberOf CredentialAuth */ constructor(_gateway: string, _basicAuth: string, _tenant: string); }