Merge pull request #24384 from backstage/freben/early-jwks

Move the jwks registration outside of the lifecycle middleware
This commit is contained in:
Fredrik Adelöw
2024-04-19 14:49:33 +02:00
committed by GitHub
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 }));