authhttp

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2026 License: MIT Imports: 4 Imported by: 0

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 ErrorFromContext

func ErrorFromContext(ctx context.Context) (error, 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 Option

type Option = httpauth.Option

type RequestMapper

type RequestMapper = httpauth.RequestMapper

Jump to

Keyboard shortcuts

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