iya-sts
    Preparing search index...
    validateChoice: (
        question: {
            acr?: string;
            amr?: string[];
            application: string;
            chosen: string[];
            offered: any[];
            username: string;
        },
    ) => { code?: string; ok: boolean; rows?: SelectionRow[]; why?: export= } = ...

    Type Declaration

      • (
            question: {
                acr?: string;
                amr?: string[];
                application: string;
                chosen: string[];
                offered: any[];
                username: string;
            },
        ): { code?: string; ok: boolean; rows?: SelectionRow[]; why?: export= }
      • Validates what a person chose at the role step.

        Parameters

        • question: {
              acr?: string;
              amr?: string[];
              application: string;
              chosen: string[];
              offered: any[];
              username: string;
          }

          username, application, offered (the rows the step offered, as role_eligibility.offer() answered them), chosen (the role names ticked), and the sign-in's acr and amr

        Returns { code?: string; ok: boolean; rows?: SelectionRow[]; why?: export= }

        { ok: true, rows } — the selectedRoles rows to stamp on the session — or { ok: false, code, why }: a role not offered (STS-XACML-0325), two of one exclusive group (0326), a required role left out (0327), or a role no longer eligible (0328)