API Reference AbsinthePermission v#1.0.0

Copy Markdown View Source

Modules

Declarative, schema-first authorization for Absinthe GraphQL.

Raised at schema compile time when the DSL is misused — unknown permission, unknown loader, malformed condition expression, etc.

Compile-time machinery for AbsinthePermission.

Compiled condition AST and helpers.

Macros that compose the AbsinthePermission DSL.

The result of evaluating all rules attached to a field.

Pure (no side effects beyond the user-supplied loader functions) evaluation of compiled rules against a request.

Declares a piece of data to fetch before a rule is evaluated.

Absinthe middleware that enforces AbsinthePermission rules.

Raised at request time when the Absinthe context lacks the keys AbsinthePermission requires (:current_user, :permissions).

A single authorization or filtering rule attached to a schema field.

Raised (or returned as a tagged error) when a caller is not authorised to perform an operation.

Mix Tasks

Print every AbsinthePermission rule attached to a schema, grouped by (type, field).