mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-07 11:13:48 +00:00
oidc: Remove tailing slash before fetching the provider config.
This commit is contained in:
parent
b5c12d10b8
commit
36bd693d3a
@ -23,6 +23,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/url"
|
"net/url"
|
||||||
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/coreos/go-oidc/jose"
|
"github.com/coreos/go-oidc/jose"
|
||||||
@ -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)
|
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 {
|
if err == nil {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user