Versions in this module Expand all Collapse all v0 v0.1.3 Jun 21, 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 + func ContextWithUser[U any](ctx context.Context, u *U) context.Context + func UserFromContext[U any](ctx context.Context) *U + 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