This PR adds a mechanism that can be used to override the default error handling behavior implemented by s.redirectError. The error handler of this mechanism is defined as func(rw http.ResponseWriter, req *server.AuthorizeRequest, error error) error, and can be enabled by passing a non-nil function to SetPreRedirectErrorHandler.
This PR adds a mechanism that can be used to override the default error handling behavior implemented by
s.redirectError
. The error handler of this mechanism is defined asfunc(rw http.ResponseWriter, req *server.AuthorizeRequest, error error) error
, and can be enabled by passing a non-nil function toSetPreRedirectErrorHandler
.