1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-04-24 01:18:01 +02:00

fix: add hosted auth option

This commit is contained in:
Ivar Conradi Østhus 2021-04-26 21:31:08 +02:00
parent 5e53927991
commit 33782d15d5
No known key found for this signature in database
GPG Key ID: 31AC596886B0BD09
2 changed files with 6 additions and 0 deletions

View File

@ -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;

View File

@ -38,6 +38,7 @@ export enum IAuthType {
OPEN_SOURCE = 'open-source',
DEMO = 'demo',
ENTERPRISE = 'enterprise',
HOSTED = 'hosted',
CUSTOM = 'custom',
NONE = 'none',
}