Open Policy Agent TypeScript Packages
    Preparing search index...
    type AuthzProviderContext = {
        defaultFromResult?: (_?: Result) => boolean;
        defaultInput?: { [k: string]: any };
        defaultPath?: string;
        opaClient: OPAClient;
        queryClient: QueryClient;
    }
    Index

    Properties

    defaultFromResult?: (_?: Result) => boolean

    The default function to apply to the policy evaluation result to get a boolean decision. It can be overridden from Authz and useAuthz. If unset, any non-undefined, non-false (i.e. "truthy") result will be taken to mean "authorized".

    defaultInput?: { [k: string]: any }

    Default input for every decision, merged with any passed-in input. Use the latter to override the defaults.

    defaultPath?: string

    Default path for every decision. Override by providingpath.

    opaClient: OPAClient

    The @open-policy-agent/opa OPAClient instance to use.

    queryClient: QueryClient

    The @tanstack/react-query client that's used for scheduling policy evaluation requests.