mirror of
https://github.com/Unleash/unleash.git
synced 2025-04-19 01:17:18 +02:00
fix: add hosted auth option
This commit is contained in:
parent
5e53927991
commit
33782d15d5
@ -73,6 +73,11 @@ export default function getApp(
|
|||||||
config.authentication.customAuthHandler(app, config, services);
|
config.authentication.customAuthHandler(app, config, services);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case IAuthType.HOSTED: {
|
||||||
|
app.use(baseUriPath, apiTokenMiddleware(config, services));
|
||||||
|
config.authentication.customAuthHandler(app, config, services);
|
||||||
|
break;
|
||||||
|
}
|
||||||
case IAuthType.DEMO: {
|
case IAuthType.DEMO: {
|
||||||
demoAuthentication(app, config.server.baseUriPath, services);
|
demoAuthentication(app, config.server.baseUriPath, services);
|
||||||
break;
|
break;
|
||||||
|
@ -38,6 +38,7 @@ export enum IAuthType {
|
|||||||
OPEN_SOURCE = 'open-source',
|
OPEN_SOURCE = 'open-source',
|
||||||
DEMO = 'demo',
|
DEMO = 'demo',
|
||||||
ENTERPRISE = 'enterprise',
|
ENTERPRISE = 'enterprise',
|
||||||
|
HOSTED = 'hosted',
|
||||||
CUSTOM = 'custom',
|
CUSTOM = 'custom',
|
||||||
NONE = 'none',
|
NONE = 'none',
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user