Complete authentication context with resource and action information.
Extends BaseAuthContext with specific resource and action being accessed, allowing for fine-grained access control decisions.
AuthContext(
self,
permissions: Sequence[str],
user: BaseUser,
resource: typing.Literal['runs', 'threads', 'crons', 'assistants', 'store'],
action: typing.Literal['create', 'read', 'update', 'delete', 'search', 'create_run', 'put', 'get', 'list_namespaces']
)The resource being accessed.
The action being performed on the resource.
Most resources support the following actions:
The store supports the following actions: