iya-sts
    Preparing search index...

    Variable mechanismsFor

    mechanismsFor: (
        fields: any,
        person?: unknown,
    ) => {
        by: string;
        holder: string;
        mechanisms: string[];
        missing: boolean;
        policy: string;
        precedence: number;
        secondFactors: string[];
    } = ...

    Type Declaration

      • (
            fields: any,
            person?: unknown,
        ): {
            by: string;
            holder: string;
            mechanisms: string[];
            missing: boolean;
            policy: string;
            precedence: number;
            secondFactors: string[];
        }
      • Resolves the named authentication policy that applies to a sign-in to its two lists: of the policy the application names and the policies the person's groups name, the lowest precedence (ties by name).

        Parameters

        • fields: any

          the application entry's fields, or null

        • Optionalperson: unknown

          the person signing in, or '' where not yet known

        Returns {
            by: string;
            holder: string;
            mechanisms: string[];
            missing: boolean;
            policy: string;
            precedence: number;
            secondFactors: string[];
        }

        { policy, by, holder, precedence, mechanisms, secondFactors, missing }: by is application, group or default