auth

package
v0.0.0-...-893f904 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authenticate

func Authenticate(ctx context.Context) (context.Context, error)

func Subject

func Subject(ctx context.Context) string

Types

type Authorizer

type Authorizer interface {
	Authorize(subject string, object string, action string) error
}

func New

func New(model string, policy string) Authorizer

Jump to

Keyboard shortcuts

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