basic

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 31, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicAuth

type BasicAuth struct{}

func (*BasicAuth) Authenticate

func (b *BasicAuth) Authenticate(ctx context.Context, r *http.Request, p interface{}) bool

func (*BasicAuth) Identify

func (b *BasicAuth) Identify(r *http.Request, p interface{}) (string, bool)

Identify returns the username from the Basic auth header when present.

func (*BasicAuth) Name

func (b *BasicAuth) Name() string

func (*BasicAuth) OptionalParams

func (b *BasicAuth) OptionalParams() []string

func (*BasicAuth) ParseParams

func (b *BasicAuth) ParseParams(m map[string]interface{}) (interface{}, error)

func (*BasicAuth) RequiredParams

func (b *BasicAuth) RequiredParams() []string

type BasicAuthOut

type BasicAuthOut struct{}

func (*BasicAuthOut) AddAuth

func (b *BasicAuthOut) AddAuth(ctx context.Context, r *http.Request, p interface{})

func (*BasicAuthOut) Name

func (b *BasicAuthOut) Name() string

func (*BasicAuthOut) OptionalParams

func (b *BasicAuthOut) OptionalParams() []string

func (*BasicAuthOut) ParseParams

func (b *BasicAuthOut) ParseParams(m map[string]interface{}) (interface{}, error)

func (*BasicAuthOut) RequiredParams

func (b *BasicAuthOut) RequiredParams() []string

Jump to

Keyboard shortcuts

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