Skip to content

Commit

Permalink
Add SkipIssuerCheck option in client.go
Browse files Browse the repository at this point in the history
  • Loading branch information
hongkunyoo committed Feb 26, 2024
1 parent 5371813 commit 42164cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/oidc/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ func (c *client) verifyToken(ctx context.Context, token *oauth2.Token, nonce str
if !ok {
return nil, fmt.Errorf("id_token is missing in the token response: %#v", token)
}
verifier := c.provider.Verifier(&gooidc.Config{ClientID: c.oauth2Config.ClientID, Now: c.clock.Now})
verifier := c.provider.Verifier(&gooidc.Config{ClientID: c.oauth2Config.ClientID, Now: c.clock.Now, SkipIssuerCheck: true})
verifiedIDToken, err := verifier.Verify(ctx, idToken)
if err != nil {
return nil, fmt.Errorf("could not verify the ID token: %w", err)
Expand Down

0 comments on commit 42164cb

Please sign in to comment.