mirror of
https://github.com/netbirdio/dex.git
synced 2026-05-22 18:43:53 -07:00
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:
+1
-1
@@ -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.")
|
||||
|
||||
Reference in New Issue
Block a user