middleware

package
v0.129.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithAuthzMiddleware

func WithAuthzMiddleware(enforcer Enforcer, logger *log.Helper) middleware.Middleware

Check Authorization for the current API operation against the current user/token

Types

type Enforcer

type Enforcer interface {
	Enforce(sub string, p *authz.Policy) (bool, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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