Skip to content

Commit

Permalink
oidc: Remove tailing slash before fetching the provider config.
Browse files Browse the repository at this point in the history
  • Loading branch information
yifan-gu committed Feb 12, 2016
1 parent b5c12d1 commit 36bd693
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 @@ -87,7 +88,7 @@ func New(issuerURL, clientID, caFile, usernameClaim string) (*OIDCAuthenticator,
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 36bd693

Please sign in to comment.