mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	fix: don't apply bearer token middleware to root (#6939)
Conflicts with scim which assumes Bearer <token>, and is located under /scim, with no /api prefix
This commit is contained in:
		
							parent
							
								
									2400ffc67e
								
							
						
					
					
						commit
						cb40f35aeb
					
				| @ -61,7 +61,7 @@ export default async function getApp( | ||||
| 
 | ||||
|     app.use(requestLogger(config)); | ||||
| 
 | ||||
|     app.use(bearerTokenMiddleware(config)); | ||||
|     app.use('/api', bearerTokenMiddleware(config)); // We only need bearer token compatibility on /api paths.
 | ||||
| 
 | ||||
|     if (typeof config.preHook === 'function') { | ||||
|         config.preHook(app, config, services, db); | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user