Documentation
¶
Overview ¶
Package authhttp provides the canonical net/http authorization adapter.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( WithDeniedHandler = httpauth.WithDeniedHandler WithErrorHandler = httpauth.WithErrorHandler )
Functions ¶
func DecisionFromContext ¶
func DecisionFromContext(ctx context.Context) (authorization.Decision, bool)
func NewHandler ¶
func NewHandler( authorizer Authorizer, mapper RequestMapper, next http.Handler, options ...Option, ) (http.Handler, error)
Types ¶
type Authorizer ¶
type Authorizer = httpauth.Authorizer
type RequestMapper ¶
type RequestMapper = httpauth.RequestMapper
Click to show internal directories.
Click to hide internal directories.