middleware

package
v2.20.3 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2024 License: MIT Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrEmptyAuth          = errors.New("empty authorization content")
	ErrNoMatchingProvider = errors.New("no matching provider for Authorization content")
)

Functions

This section is empty.

Types

type Service added in v2.16.0

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

func New

func New(authProvider auth.Provider, tracerProvider trace.TracerProvider, identProviders ...ident.Provider) Service

func (Service) IsAuthenticated added in v2.16.0

func (s Service) IsAuthenticated(r *http.Request) (ident.Provider, model.User, error)

func (Service) IsAuthorized added in v2.16.0

func (s Service) IsAuthorized(ctx context.Context, profile string) bool

func (Service) Middleware added in v2.16.0

func (s Service) Middleware(next http.Handler) http.Handler

Jump to

Keyboard shortcuts

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