authentication

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(config *Configuration, provider Provider) func(http.Handler) http.Handler

Handler authentication

Types

type Configuration

type Configuration struct {
	Realm string
}

Configuration struct

type MockProvider

type MockProvider struct {
	mock.Mock
}

MockProvider is an autogenerated mock type for the Provider type

func (*MockProvider) Validate

func (_m *MockProvider) Validate(r *http.Request) bool

Validate provides a mock function with given fields: r

type Provider

type Provider interface {
	Validate(r *http.Request) bool
}

Provider interface

Jump to

Keyboard shortcuts

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