iya-sts
    Preparing search index...

    Variable evaluate

    evaluate: (
        policy: any,
        request: any,
        options: any,
    ) => {
        advice: any;
        decision: any;
        obligations: any;
        policyIdentifiers: any[];
        status: any;
    } = evaluate

    Type Declaration

      • (
            policy: any,
            request: any,
            options: any,
        ): {
            advice: any;
            decision: any;
            obligations: any;
            policyIdentifiers: any[];
            status: any;
        }
      • Evaluates a request against a policy or policy set and returns the decision a caller sees.

        This is the one place the extended Indeterminate values are folded into the four external decisions. An error escaping the evaluation becomes an Indeterminate with its message rather than a throw.

        Parameters

        • policy: any

          the root Policy or PolicySet

        • request: any

          the request

        • options: any

          optional; resolver, now and repository

        Returns {
            advice: any;
            decision: any;
            obligations: any;
            policyIdentifiers: any[];
            status: any;
        }

        the response: decision, status, obligations, advice and policyIdentifiers