Merge pull request #48907 from thomastaylor312/bump_oidc_dep
Automatic merge from submit-queue (batch tested with PRs 47738, 49196, 48907, 48533, 48822) Bumps go-oidc version to include fix for jwt header parsing **What this PR does / why we need it**: This bumps the go-oidc dependency to use a fix merged in https://github.com/coreos/go-oidc/pull/153 for OIDC providers that don't set an `Expires` header **Which issue this PR fixes** : Partially addresses #42654 Also related: https://github.com/coreos/go-oidc/issues/136 **Special notes for your reviewer**: None **Release note**: ```release-note NONE ```
This commit is contained in:
7
vendor/github.com/coreos/go-oidc/http/http.go
generated
vendored
7
vendor/github.com/coreos/go-oidc/http/http.go
generated
vendored
@@ -91,7 +91,12 @@ func expires(date, expires string) (time.Duration, bool, error) {
|
||||
return 0, false, nil
|
||||
}
|
||||
|
||||
te, err := time.Parse(time.RFC1123, expires)
|
||||
var te time.Time
|
||||
var err error
|
||||
if expires == "0" {
|
||||
return 0, false, nil
|
||||
}
|
||||
te, err = time.Parse(time.RFC1123, expires)
|
||||
if err != nil {
|
||||
return 0, false, err
|
||||
}
|
||||
|
Reference in New Issue
Block a user