Skip to content

Commit

Permalink
Merge pull request #67 from opendoor-labs/token-issue-ENGBUGS-52663
Browse files Browse the repository at this point in the history
ENGBUGS-52663 Enable skip Expiry Check fix
  • Loading branch information
aagarwal-opendoor authored Nov 18, 2024
2 parents 67dbd97 + 4cfb3ff commit 2434bb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/validation/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ func Validate(o *options.Options) error {
o.SetOIDCVerifier(provider.Verifier(&oidc.Config{
ClientID: o.Providers[0].ClientID,
SkipIssuerCheck: o.Providers[0].OIDCConfig.InsecureSkipIssuerVerification,
SkipExpiryCheck: true,
}))

o.Providers[0].LoginURL = provider.Endpoint().AuthURL
Expand Down Expand Up @@ -369,8 +370,7 @@ func parseJwtIssuers(issuers []string, msgs []string) ([]jwtIssuer, []string) {
// a verifier for that issuer.
func newVerifierFromJwtIssuer(jwtIssuer jwtIssuer) (*oidc.IDTokenVerifier, error) {
config := &oidc.Config{
ClientID: jwtIssuer.audience,
SkipExpiryCheck: true,
ClientID: jwtIssuer.audience,
}
// Try as an OpenID Connect Provider first
var verifier *oidc.IDTokenVerifier
Expand Down

0 comments on commit 2434bb1

Please sign in to comment.