From 775ac8b474ead5ecdfb22c372a056dd9942d05ac Mon Sep 17 00:00:00 2001 From: garrettmills Date: Fri, 12 Apr 2024 23:26:02 -0500 Subject: [PATCH] Make /oidc/jwks support ANY http verb --- app/unit/OpenIDConnectUnit.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/unit/OpenIDConnectUnit.js b/app/unit/OpenIDConnectUnit.js index 03d6f7d..382fe30 100644 --- a/app/unit/OpenIDConnectUnit.js +++ b/app/unit/OpenIDConnectUnit.js @@ -114,6 +114,11 @@ class OpenIDConnectUnit extends Unit { } } + // Stupid /jwks only listens on GET which is incompatible w/ some apps + if ( req.url === '/jwks' ) { + req.method = 'GET' + } + return callback(req, res, next) } }