middleware

package
v2.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2021 License: MIT Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// ErrEmptyAuth occurs when authorization content is not found
	ErrEmptyAuth = errors.New("empty authorization content")

	// ErrNoMatchingProvider occurs no provider is found for given auth
	ErrNoMatchingProvider = errors.New("no matching provider for Authorization content")
)

Functions

This section is empty.

Types

type App

type App interface {
	Middleware(http.Handler) http.Handler
	IsAuthenticated(*http.Request, string) (ident.Provider, model.User, error)
	HasProfile(context.Context, model.User, string) bool
}

App of package

func New

func New(authProvider auth.Provider, identProviders ...ident.Provider) App

New creates new App for given providers

Jump to

Keyboard shortcuts

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