auth

package
v2.0.0-alpha7+incompat... Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2019 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBasic

func NewBasic(ctx context.Context, next http.Handler, authConfig config.BasicAuth, name string) (http.Handler, error)

NewBasic creates a basicAuth middleware.

func NewDigest

func NewDigest(ctx context.Context, next http.Handler, authConfig config.DigestAuth, name string) (http.Handler, error)

NewDigest creates a digest auth middleware.

func NewForward

func NewForward(ctx context.Context, next http.Handler, config config.ForwardAuth, name string) (http.Handler, error)

NewForward creates a forward auth middleware.

Types

type UserParser

type UserParser func(user string) (string, string, error)

UserParser Parses a string and return a userName/userHash. An error if the format of the string is incorrect.

Jump to

Keyboard shortcuts

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