From fc4dd5365266b6745478b3a067e2edcd79529dbf Mon Sep 17 00:00:00 2001 From: Mike Mason Date: Tue, 30 Jul 2024 17:54:55 -0500 Subject: [PATCH] parse jwkset correctly (#294) This corrects the v2 -> v3 keyfunc update to parse a jwkset instead of a single jwk. Signed-off-by: Mike Mason --- cmd/serve.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/serve.go b/cmd/serve.go index f6b44468..6184733c 100644 --- a/cmd/serve.go +++ b/cmd/serve.go @@ -172,7 +172,7 @@ func getAuthMiddleware(ctx context.Context, config fositex.OAuth2Configurator, s return nil, err } - jwks, err := keyfunc.NewJWKJSON(json.RawMessage(buff.Bytes())) + jwks, err := keyfunc.NewJWKSetJSON(json.RawMessage(buff.Bytes())) if err != nil { return nil, err }