loom.core.authz.product

The product’s authorization declaration, published through the loom.authz entry point.

Functions

clear_authz_product()

Forget the registered product; for tests.

load_authz_product()

Return the registered product, else the one the loom.authz entry point names.

register_authz_product(product)

Install product for this process, ahead of any entry point.

Classes

AuthzProduct(*args, **kwargs)

What loom needs from a product to decide, delegate and elevate.

class loom.core.authz.product.AuthzProduct(*args, **kwargs)[source]

Bases: Protocol

What loom needs from a product to decide, delegate and elevate.

loom.core.authz.product.register_authz_product(product)[source]

Install product for this process, ahead of any entry point.

Parameters:

product (AuthzProduct)

Return type:

None

loom.core.authz.product.clear_authz_product()[source]

Forget the registered product; for tests.

Return type:

None

loom.core.authz.product.load_authz_product()[source]

Return the registered product, else the one the loom.authz entry point names.

Return type:

AuthzProduct | None