mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01: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); | ||||
|             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; | ||||
|  | ||||
| @ -38,6 +38,7 @@ export enum IAuthType { | ||||
|     OPEN_SOURCE = 'open-source', | ||||
|     DEMO = 'demo', | ||||
|     ENTERPRISE = 'enterprise', | ||||
|     HOSTED = 'hosted', | ||||
|     CUSTOM = 'custom', | ||||
|     NONE = 'none', | ||||
| } | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user