oc_connect
Loading...
Searching...
No Matches
oc_connect.grants Namespace Reference

Classes

class  GrantFileError
class  GrantRequiredError
class  GrantStore

Functions

Path default_grant_path (str|Path|None root=None)

Variables

str GRANT_FILENAME = "grants.json"

Detailed Description

Durable operator-consent and risk-scoped connector grants.

Dependencies
------------
- oc_diagnostics (_dbg structured logging of grant creation, revocation and send checks)
- option_c_connector_contracts (ConnectorGrant, OperatorConsent - the grant and consent records the store persists)
- oc_connect.workspace (state_dir - the workspace state directory that holds the grant store)

Function Documentation

◆ default_grant_path()

Path oc_connect.grants.default_grant_path ( str | Path | None root = None)
Return the workspace-anchored grant store path (CONNECT-02 ยง7.1).

Definition at line 25 of file grants.py.

Variable Documentation

◆ GRANT_FILENAME

str oc_connect.grants.GRANT_FILENAME = "grants.json"

Definition at line 22 of file grants.py.