authz

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromContext

func FromContext(ctx context.Context) (claims engine.Claims, ok bool)

FromContext extracts the claims from the provided context (if any).

func NewContext

func NewContext(ctx context.Context, claims engine.Claims) context.Context

NewContext injects the provided claims in to the parent context.

func Server

func Server(authorizer engine.Authorizer) middleware.Middleware

Server is a server authorizer middleware

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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