fix: join issuer URL with discovery path without extra slash after issuer URL

Signed-off-by: Wenxuan Zhao <viz@linux.com>
This commit is contained in:
Wenxuan Zhao
2025-08-12 01:14:28 +08:00
parent 619f0e5451
commit be868b9f7c
+1 -1
View File
@@ -464,7 +464,7 @@ func newServer(ctx context.Context, c Config, rotationStrategy rotationStrategy)
<h1>Dex IdP</h1>
<h3>A Federated OpenID Connect Provider</h3>
<p><a href=%q>Discovery</a></p>`,
s.issuerURL.String()+"/.well-known/openid-configuration")
s.issuerURL.JoinPath(".well-known", "openid-configuration").String())
if err != nil {
s.logger.Error("failed to write response", "err", err)
s.renderError(r, w, http.StatusInternalServerError, "Handling the / path error.")