Skip to content

Commit

Permalink
Merge pull request kubernetes#21128 from yifan-gu/fix_oidc_tailing_sl…
Browse files Browse the repository at this point in the history
…ash_issuer

Auto commit by PR queue bot
  • Loading branch information
k8s-merge-robot committed Feb 16, 2016
2 parents 47acbd6 + 36bd693 commit f366bae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugin/pkg/auth/authenticator/token/oidc/oidc.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (
"fmt"
"net/http"
"net/url"
"strings"
"time"

"github.com/coreos/go-oidc/jose"
Expand Down Expand Up @@ -88,7 +89,7 @@ func New(issuerURL, clientID, caFile, usernameClaim, groupsClaim string) (*OIDCA
return nil, fmt.Errorf("failed to fetch provider config after %v retries", maxRetries)
}

cfg, err = oidc.FetchProviderConfig(hc, issuerURL)
cfg, err = oidc.FetchProviderConfig(hc, strings.TrimSuffix(issuerURL, "/"))
if err == nil {
break
}
Expand Down

0 comments on commit f366bae

Please sign in to comment.