Move the jwks registration outside of the lifecycle middleware

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2024-04-19 13:35:39 +02:00
parent ae3b511187
commit e8199b1684
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/backend-app-api': patch
---
Move the JWKS registration outside of the lifecycle middleware
@@ -75,8 +75,8 @@ export const httpRouterServiceFactory = createServiceFactory(
config,
});
router.use(createLifecycleMiddleware({ lifecycle }));
router.use(createAuthIntegrationRouter({ auth }));
router.use(createLifecycleMiddleware({ lifecycle }));
router.use(credentialsBarrier.middleware);
router.use(createCookieAuthRefreshMiddleware({ auth, httpAuth }));