diff --git a/src/lib/app.ts b/src/lib/app.ts index 4d85378ca4..eb6353e257 100644 --- a/src/lib/app.ts +++ b/src/lib/app.ts @@ -73,6 +73,11 @@ export default function getApp( config.authentication.customAuthHandler(app, config, services); break; } + case IAuthType.HOSTED: { + app.use(baseUriPath, apiTokenMiddleware(config, services)); + config.authentication.customAuthHandler(app, config, services); + break; + } case IAuthType.DEMO: { demoAuthentication(app, config.server.baseUriPath, services); break; diff --git a/src/lib/types/option.ts b/src/lib/types/option.ts index 8cbd21ee19..bdfe72d43c 100644 --- a/src/lib/types/option.ts +++ b/src/lib/types/option.ts @@ -38,6 +38,7 @@ export enum IAuthType { OPEN_SOURCE = 'open-source', DEMO = 'demo', ENTERPRISE = 'enterprise', + HOSTED = 'hosted', CUSTOM = 'custom', NONE = 'none', }