Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(handler http.HandlerFunc) string
Register registers a specific handler with the redirect handler
func SetupRouter ¶
SetupRouter connects the redirect handler to the router
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler manages a dynamic map of routes for handling the redirect during OAuth authentication. When a route is registered a token OAuth state is returned. On GET request the generic handler identifies route and target handler by request state obtained from the request and delegates to the registered handler.
Click to show internal directories.
Click to hide internal directories.