redirect

package
v0.0.0-...-48b1b68 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func (*Handler) OAuthCallback

func (h *Handler) OAuthCallback(w http.ResponseWriter, r *http.Request)

func (*Handler) RedirectResult

func (h *Handler) RedirectResult(w http.ResponseWriter, r *http.Request, redirectURI string, errRes error)

type OnRedirectFunc

type OnRedirectFunc func(ctx context.Context, data string) (err error)

OnRedirectFunc called when handler serve redirect request.

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(uri string, waitTime time.Duration, errors func(error)) (*Server, error)

func (*Server) Close

func (s *Server) Close() error

func (*Server) GetAuthCodeURL

func (s *Server) GetAuthCodeURL(onRedirect OnRedirectFunc, cfg oauth2.Config, options ...oauth2.AuthCodeOption) (authID, authCodeURL string, err error)

func (*Server) Remove

func (s *Server) Remove(authID string)

Jump to

Keyboard shortcuts

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