oauth2redirect

package
v0.0.0-...-1470ac1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2024 License: MIT Imports: 7 Imported by: 0

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

func SetupRouter(router *mux.Router)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL