Skip to content

Commit

Permalink
Mark time before the notBefore time as expired as well as after the n…
Browse files Browse the repository at this point in the history
…otAfter time.
  • Loading branch information
schmidtw committed Nov 22, 2024
1 parent 356930f commit a879f70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion token/claimBuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ func (cb *clientCertificateClaimBuilder) AddClaims(_ context.Context, r *Request
}

// special logic around expired certificates
expired := now.After(pc.NotAfter)
expired := now.Before(pc.NotBefore) || now.After(pc.NotAfter)
vo := x509.VerifyOptions{
// always set the current time so that we disambiguate expired
// from untrusted.
Expand Down

0 comments on commit a879f70

Please sign in to comment.