Skip to content

Interface: AuthzCheckRequest

@kortexya/reasoninglayer


@kortexya/reasoninglayer / AuthzCheckRequest

Defined in: src/types/authz.ts:264

Body of POST /api/v1/authz/check — does a subject hold a permission on a resource?

const request: AuthzCheckRequest = {
subject: 'user:alice',
permission: 'read',
resource: 'doc:1',
};

optional decisionTime?: string

Defined in: src/types/authz.ts:279

The instant the decision is made at (RFC 3339). Absent: the instant the engine receives the request. Only the gateway provisioning identity may set it; a time-bounded grant is judged at this instant.


permission: string

Defined in: src/types/authz.ts:271

The permission to check.


resource: string

Defined in: src/types/authz.ts:273

The resource the permission applies to.


subject: string

Defined in: src/types/authz.ts:269

The subject to probe. An ordinary caller may probe only its OWN subject; the gateway provisioning identity may probe anyone.