authhandler

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2020 License: Apache-2.0 Imports: 9 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
}

Handler handles all imcoming requests about authentication.

func NewHandler

func NewHandler(
	signer jwt.Signer,
	apiURL string,
	stateSeed string,
	projectGetter projectGetter,
	logger *zap.Logger,
) *Handler

NewHandler returns a handler that will used for authentication.

func (*Handler) Register

func (h *Handler) Register(reg func(string, func(http.ResponseWriter, *http.Request)))

Register registers all handler into the specified registry.

Jump to

Keyboard shortcuts

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