MCPcopy
hub / github.com/ory/hydra / writeAuthorizeError

Method writeAuthorizeError

oauth2/handler.go:1385–1392  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request, ar fosite.AuthorizeRequester, err error)

Source from the content-addressed store, hash-verified

1383}
1384
1385func (h *Handler) writeAuthorizeError(w http.ResponseWriter, r *http.Request, ar fosite.AuthorizeRequester, err error) {
1386 if !ar.IsRedirectURIValid() {
1387 h.forwardError(w, r, err)
1388 return
1389 }
1390
1391 h.r.OAuth2Provider().WriteAuthorizeError(r.Context(), w, ar, err)
1392}
1393
1394// updateSessionWithRequest takes a session and a fosite.request as input and returns a new session.
1395// If any errors occur, they are logged.

Callers 1

oAuth2AuthorizeMethod · 0.95

Calls 4

forwardErrorMethod · 0.95
IsRedirectURIValidMethod · 0.65
WriteAuthorizeErrorMethod · 0.65
OAuth2ProviderMethod · 0.65

Tested by

no test coverage detected