fix: device callback URL needs to handle a / (#4448)

If the issuer path ends with a / the URL will be built wrong so we
should instead use the helper function to ensure the path is built
correctly. fixes #4242.

Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
This commit is contained in:
Doug Goldstein
2026-01-13 08:39:41 +01:00
committed by GitHub
parent 895a74879b
commit dcbb7bbe58
+1 -1
View File
@@ -491,7 +491,7 @@ func (s *Server) parseAuthorizationRequest(r *http.Request) (*storage.AuthReques
return nil, newDisplayedErr(http.StatusBadRequest, "Unregistered redirect_uri (%q).", redirectURI)
}
if redirectURI == deviceCallbackURI && client.Public {
redirectURI = s.issuerURL.Path + deviceCallbackURI
redirectURI = s.absPath(deviceCallbackURI)
}
// From here on out, we want to redirect back to the client with an error.