From 55faf713c34fb724f25a41783fdee4368f2ae090 Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Sat, 20 Jun 2020 00:24:41 +0200 Subject: [PATCH] auth-backend: fix jwks response not wrapping keys in object --- plugins/auth-backend/src/identity/router.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/auth-backend/src/identity/router.ts b/plugins/auth-backend/src/identity/router.ts index e9dd1e0f80..9155bed9e8 100644 --- a/plugins/auth-backend/src/identity/router.ts +++ b/plugins/auth-backend/src/identity/router.ts @@ -56,7 +56,7 @@ export function createOidcRouter(options: Options) { router.get('/.well-known/jwks.json', async (_req, res) => { logger.info('request certs'); const keys = await keyStore.listPublicKeys(); - res.json(keys); + res.json({ keys }); }); router.get('/v1/token', (_req, res) => {