Skip to content

Conversation

realbucksavage
Copy link

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.

@LyricTian LyricTian merged commit b3af9ce into go-oauth2:master Jan 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants