Versions in this module Expand all Collapse all v0 v0.2.0 Jun 28, 2026 Changes in this version + var ErrAuthenticationRequired = apperror.Authentication("Authentication required.") + var ErrInsufficientPermissions = apperror.Authorization("Insufficient permissions.") + var ErrInsufficientTokenScope = apperror.Authentication("Insufficient token scope.") + var ErrNotAdminActor = apperror.Authorization("This operation requires an admin actor.") + var ErrNotServiceActor = apperror.Authorization("This operation requires a service actor.") + func ContextWithActor(ctx context.Context, a *Actor) context.Context + type Actor struct + ClientID string + ID uuid.UUID + IsAdmin bool + Locale string + Permissions []string + Scopes []string + Type ActorType + func ActorFromContext(ctx context.Context) *Actor + type ActorType string + const ActorTypeService + const ActorTypeUser