(w http.ResponseWriter, r *http.Request, err error)
| 1377 | func (h *Handler) handleOptions(http.ResponseWriter, *http.Request) {} |
| 1378 | |
| 1379 | func (h *Handler) forwardError(w http.ResponseWriter, r *http.Request, err error) { |
| 1380 | rfcErr := fosite.ErrorToRFC6749Error(err).WithExposeDebug(h.c.GetSendDebugMessagesToClients(r.Context())) |
| 1381 | query := rfcErr.ToValues() |
| 1382 | http.Redirect(w, r, urlx.CopyWithQuery(h.c.ErrorURL(r.Context()), query).String(), http.StatusFound) |
| 1383 | } |
| 1384 | |
| 1385 | func (h *Handler) writeAuthorizeError(w http.ResponseWriter, r *http.Request, ar fosite.AuthorizeRequester, err error) { |
| 1386 | if !ar.IsRedirectURIValid() { |
no test coverage detected