UNPKG

@mindconnect/mindconnect-nodejs

Version:

NodeJS Library for Siemens Insights Hub Connectivity - TypeScript SDK for Insights Hub and Industrial IoT - Command Line Interface - Insights Hub Development Proxy (Siemens Insights Hub was formerly known as MindSphere)

27 lines (26 loc) 898 B
import { MindConnectBase, TokenRotation } from "./mindconnect-base"; export declare abstract class AuthBase extends MindConnectBase implements TokenRotation { protected _gateway: string; protected _basicAuth: string; protected _tenant: string; protected _accessToken?: any; protected _oauthResponse?: any; protected _publicKey: any; protected abstract AcquireToken(): Promise<boolean>; private ValidateToken; private getPublicKey; private AcquirePublicKey; RenewToken(): Promise<boolean>; abstract GetToken(): 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); GetTenant(): string; GetGateway(): string; }