Documentation
¶
Overview ¶
Package authn defines the middleware and functions to authenticate HTTP requests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnauthenticated = errors.New("unauthenticated")
ErrUnauthenticated represents a unauthenticated context error.
Functions ¶
func AuthMiddleware ¶
AuthMiddleware authenticates requests and extracts sessions variables from the authenticated credentials.
func GetAuthContext ¶
GetAuthContext gets the authenticated session from context.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.