Browse Source

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

Signed-off-by: Wenxuan Zhao <viz@linux.com>
pull/4263/head
Wenxuan Zhao 7 months ago
parent
commit
be868b9f7c
No known key found for this signature in database
GPG Key ID: B45B13F10587A57
  1. 2
      server/server.go

2
server/server.go

@ -464,7 +464,7 @@ func newServer(ctx context.Context, c Config, rotationStrategy rotationStrategy)
<h1>Dex IdP</h1> <h1>Dex IdP</h1>
<h3>A Federated OpenID Connect Provider</h3> <h3>A Federated OpenID Connect Provider</h3>
<p><a href=%q>Discovery</a></p>`, <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 { if err != nil {
s.logger.Error("failed to write response", "err", err) s.logger.Error("failed to write response", "err", err)
s.renderError(r, w, http.StatusInternalServerError, "Handling the / path error.") s.renderError(r, w, http.StatusInternalServerError, "Handling the / path error.")

Loading…
Cancel
Save