Skip to content

Commit

Permalink
parse jwkset correctly (#294)
Browse files Browse the repository at this point in the history
This corrects the v2 -> v3 keyfunc update to parse a jwkset instead of a single jwk.

Signed-off-by: Mike Mason <[email protected]>
  • Loading branch information
mikemrm authored Jul 30, 2024
1 parent dd677cd commit fc4dd53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit fc4dd53

Please sign in to comment.