Skip to main content

decisionRequestDigest

@mandaitor/sdk


@mandaitor/sdk / decisionRequestDigest

Function: decisionRequestDigest()

decisionRequestDigest(tenantId, request): Promise<string>

Defined in: @mandaitor/sdk/dist/decisions.d.ts:122

The request digest of a decision request, as Mandaitor computes it: the SHA-256 of the RFC 8785 form of the contract, the tenant, the agent, the action, the resource, the facts and the audience. mandate_id and purpose are not part of it. The authorization carries it, and the enforcement point redeems the authorization with it.

Parameters​

tenantId​

string

request​

Pick<DecisionRequest, "agent" | "action" | "resource" | "facts" | "audience">

Returns​

Promise<string>