authz

package
v0.0.0-...-96f2668 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnauthorized  = errors.Forbidden(reason, "unauthorized access")
	ErrMissingClaims = errors.Forbidden(reason, "missing authz claims")
	ErrInvalidClaims = errors.Forbidden(reason, "invalid authz claims")
)

Functions

func FromContext

func FromContext(ctx context.Context) (*authz.AuthClaims, bool)

func NewContext

func NewContext(ctx context.Context, claims *authz.AuthClaims) context.Context

func Server

func Server(authorizer authz.Authorizer, opts ...Option) middleware.Middleware

Types

type Option

type Option func(*options)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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