Merge pull request #4263 from vizv/fix-discovery-link

fix: join issuer URL with discovery path without extra slash after issuer URL
This commit is contained in:
Márk Sági-Kazár
2025-08-18 12:40:51 +02:00
committed by GitHub
+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.")