@theia/core
Version:
Theia is a cloud & desktop IDE framework implemented in TypeScript.
18 lines • 861 B
TypeScript
import * as express from '../../../shared/express/index.cjs';
import { BackendApplicationContribution } from '../../node/index.js';
import { ElectronTokenValidator } from './electron-token-validator.js';
import { ILogger } from '../../common/logger.js';
/**
* This component contributes an Express middleware that will refuse all
* requests that do not include a specific token.
*/
export declare class ElectronTokenBackendContribution implements BackendApplicationContribution {
protected readonly logger: ILogger;
protected readonly tokenValidator: ElectronTokenValidator;
configure(app: express.Application): void;
/**
* Only allow token-bearers.
*/
protected expressMiddleware(req: express.Request, res: express.Response, next: express.NextFunction): void;
}
//# sourceMappingURL=electron-token-backend-contribution.d.ts.map