fake

package
v0.1.63 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AuthCtx contextKey = iota
)

Variables

This section is empty.

Functions

func Authenticate

func Authenticate(ctx context.Context, input *openapi3filter.AuthenticationInput) error

Authenticate is a fake implementation of the authenticator.

func GetAPIKeyFromRequest

func GetAPIKeyFromRequest(req *http.Request) (string, error)

GetAPIKeyFromRequest is a fake implementation of the API key extractor.

func NewAuthenticator

func NewAuthenticator() openapi3filter.AuthenticationFunc

NewAuthenticator returns a new authenticator.

Types

This section is empty.

Jump to

Keyboard shortcuts

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