This commit is contained in:
Raul Sampedro 2025-09-11 14:43:27 +02:00
parent 8afb047e01
commit 0e98dd85ec
No known key found for this signature in database
GPG Key ID: 410BA75660B9EFB6
1 changed files with 2 additions and 0 deletions

View File

@ -10,6 +10,7 @@ import (
"os"
"github.com/coreos/go-oidc/v3/oidc"
"github.com/oauth2-proxy/oauth2-proxy/v7/pkg/requests"
k8serrors "k8s.io/apimachinery/pkg/util/errors"
)
@ -132,6 +133,7 @@ func getVerifierBuilder(ctx context.Context, opts ProviderVerifierOptions) (veri
var err error
if opts.JWKsURL != "" {
ctx = oidc.ClientContext(ctx, requests.DefaultHTTPClient)
keySet = oidc.NewRemoteKeySet(ctx, opts.JWKsURL)
} else {
keySet, err = newKeySetFromStatic(opts.PublicKeyFiles)