authorization

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package authorization re-exports the reusable authorization vocabulary for clean services.

Index

Constants

View Source
const (
	ActorTypeUser    = base.ActorTypeUser
	ActorTypeService = base.ActorTypeService
)

Variables

View Source
var (
	ErrAuthenticationRequired  = base.ErrAuthenticationRequired
	ErrInsufficientTokenScope  = base.ErrInsufficientTokenScope
	ErrInsufficientPermissions = base.ErrInsufficientPermissions
	ErrNotAdminActor           = base.ErrNotAdminActor
	ErrNotServiceActor         = base.ErrNotServiceActor
)

Functions

func ContextWithActor

func ContextWithActor(ctx context.Context, actor *Actor) context.Context

Types

type Actor

type Actor = base.Actor

func ActorFromContext

func ActorFromContext(ctx context.Context) *Actor

type ActorType

type ActorType = base.ActorType

Jump to

Keyboard shortcuts

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