iya-sts
    Preparing search index...

    Variable makeContext

    makeContext: (
        request: any,
        options: any,
    ) => {
        applicablePolicies: any[];
        countNodes: () => never;
        includedAttributes: any[];
        now: any;
        request: any;
        resolver: any;
    } = makeContext

    Type Declaration

      • (
            request: any,
            options: any,
        ): {
            applicablePolicies: any[];
            countNodes: () => never;
            includedAttributes: any[];
            now: any;
            request: any;
            resolver: any;
        }
      • Builds the evaluation context for one decision.

        The context carries the request, the optional PIP resolver, a clock fixed for the whole evaluation, and the lists of included attributes and applicable policies collected while evaluating. XPath is not supported: its countNodes() throws a processing error.

        Parameters

        • request: any

          the request, in the shapes of xacml_model.js

        • options: any

          optional; resolver (the PIP) and now (a Date)

        Returns {
            applicablePolicies: any[];
            countNodes: () => never;
            includedAttributes: any[];
            now: any;
            request: any;
            resolver: any;
        }

        the context