authz

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2022 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) (*engine.AuthClaims, bool)

func NewContext

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

func Server

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

Types

type Option

type Option func(*options)

Jump to

Keyboard shortcuts

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