Skip to content

Permission Protocol

Authorizes concrete attempted actions: callers ask whether an action may use authority now.

Permission Protocol

Authorizes concrete attempted actions: callers ask whether an action may use authority now.

FieldValue
Protocol IDaster.permission
Version1.0.0
Compatibility range^1.0.0
Requirement helperaster.permission.require(settings?) via the protocol module
Provider helperNot available until the protocol module declares a runtime service tag.

Settings

DefaultProtocolSettingsSchema (Record<string, unknown> | null).

Operations

OperationSummaryRequestResponse
authorizeDecide whether a concrete attempted action is authorized; an undefined result is a denial-free pass with no grant.Effect Schema (Objects)Effect Schema (Union)

Conformance Expectations

  • Register with aster.permission at 1.0.0 inside ^1.0.0.
  • Implement every operation: authorize.
  • Decode requests and responses against the operation schemas listed above.
  • Run the protocol conformance kit where one exists: PermissionProviderConformanceKit.

Declared Authority

[
{
"kind": "provider_right",
"protocol": "aster.permission"
}
]