modified: pkg/providers/oidc/provider_verifier.go

This commit is contained in:
lixianlin01 2023-03-29 14:58:13 +08:00
parent a8f82e39cb
commit 152b534250
1 changed files with 5 additions and 4 deletions

View File

@ -80,10 +80,11 @@ func (p ProviderVerifierOptions) toVerificationOptions() IDTokenVerificationOpti
// toOIDCConfig returns an oidc.Config based on the configured options. // toOIDCConfig returns an oidc.Config based on the configured options.
func (p ProviderVerifierOptions) toOIDCConfig() *oidc.Config { func (p ProviderVerifierOptions) toOIDCConfig() *oidc.Config {
return &oidc.Config{ return &oidc.Config{
ClientID: p.ClientID, ClientID: p.ClientID,
SkipIssuerCheck: p.SkipIssuerVerification, SkipIssuerCheck: p.SkipIssuerVerification,
SkipClientIDCheck: true, SkipClientIDCheck: true,
SupportedSigningAlgs: p.SupportedSigningAlgs, InsecureSkipSignatureCheck: true,
SupportedSigningAlgs: p.SupportedSigningAlgs,
} }
} }