iya-sts
    Preparing search index...

    Draws Policies from the answer of GET /admin-api/policies: every kind of policy a realm holds — password, authentication and the others — each profile with its form.

    A static utility class; it holds no state and takes no dependencies.

    Index
    • Draws the attribute policy section of /admin/policies: enforcement, where the profile comes from, every attribute with its Required box, the people who lack one, the realm's custom attributes and the form that defines one, and the schema.

      Parameters

      • view: any

        the policies view from adminViews.policiesView()

      • t: any

        the page's translator (#539)

      • Optionalstate: any

      Returns string

      the section as HTML

    • Draws the authentication policy section of /admin/policies: the mail and NIST warnings, where the profile comes from, the forms, and which mechanisms are accepted as a first and a second factor.

      Parameters

      • view: any

        the policies view from adminViews.policiesView()

      • t: any

        the page's translator (#539)

      Returns string

      the section as HTML

    • Draws the page's body from its view.

      Parameters

      • ctx: any

        the render context (WebKit.context())

      • view: any

        the answer of the page's management API operation

      Returns string

      the body as HTML

    • The key a New policy form's draft is kept under (#841): the form's, not the typed name's.

      Parameters

      • kindId: any

        the policy kind's id

      Returns string

      the key

    • One policy's Export button (rcbj 2026-11-14): a form posting export with that one policy as the selection, whose answer is the signed document as a download.

      Parameters

      • kind: any

        the policy's kind

      • name: any

        its name within the kind

      • t: any

        the page's translator (#539)

      Returns string

      the form as HTML

    • Draws the section of /admin/policies for a kind of policy with nothing particular to say: its forms, rules and schema, from its module.

      Parameters

      • view: any

        the policies view from adminViews.policiesView()

      • kind: any

        the policy kind

      • t: any

        the page's translator (#539)

      • Optionalstate: any

        optional; the page's state: a named profile form's draft and its application search's results (#609)

      Returns string

      the section as HTML

    • Draws the named authentication policies of the authentication tab: the list for its Named policies sub-tab and the form for its New policy one.

      Parameters

      • ap: any

        the authentication policy's member of the policies view

      • t: any

        the page's translator (#539)

      Returns { add: string; list: string }

      { list, add }, each as HTML

    • Draws a kind's named profiles in two parts: the list of profiles, each with what it selects and its form, and the form that adds one.

      GENERIC OVER WHAT THE KIND DECLARES (#1235, rule 3cx): a box per selector in member.selectors (selectApplications — the locale policy's, until its applications name it — — the post-login policy's, until its groups name it — precedence), and, for a tabbed kind, what names each profile (named.namedBy, the applications, groups and people whose reference attributes in member.references name it), read-only.

      Parameters

      • kind: any

        the policy kind

      • member: any

        the kind's member of the policies view

      • t: any

        the page's translator (#539)

      • state: any

        the page's state: policyDrafts and policySaveErrors by draft key (#841)

      Returns { add: string; list: string }

      { list, add }, each HTML

    • Draws a kind's NAMED profiles (#535, the passkey policy): one form per profile with its selectors, and a form to add one. The one that applies to a sign-in is the matching profile with the lowest precedence.

      Parameters

      • kind: any

        the policy kind

      • member: any

        the kind's member of the policies view

      • t: any

        the page's translator (#539)

      Returns string

      the section as HTML

    • Draws the passkey policy's learned clients (#1112): the switch and its thresholds, a page of the register — learned first — each with a Clear form, and Clear all. Each form posts the kind's own act, which the runtime sends to POST /admin-api/policies/{action}.

      Parameters

      • clients: any

        passkey.clients of the policies view

      • t: any

        the page's translator (#539)

      Returns string

      the section as HTML

    • Draws the password policy section of /admin/policies: enforcement, the save and reset forms, the current rules, the doors that enforce it, the history cost, the generator and the schema.

      Parameters

      • view: any

        the policies view from adminViews.policiesView()

      • t: any

        the page's translator (#539)

      • Optionalstate: any

        optional; the page's state: a New policy form's draft and refusal (#841)

      Returns string

      the section as HTML

    • A checklist of policies, a box per policy named policies whose value is its { kind, name } as JSON (the selection an operation takes as policies), and a Select all switch the runtime wires (data-check-all).

      Parameters

      • rows: any

        { kind, name, named?, replaces? } per policy

      • ticked: any

        whether every box starts ticked

      • t: any

        the page's translator (#539)

      Returns string

      the checklist as HTML

    • Draws one field of a policy profile form as a table row: its control, attribute, built-in default and source.

      A field the view marks disabled is drawn disabled with its reason.

      Parameters

      • field: any

        the field from the policies view

      • prefix: any

        the id prefix of the form (defaults to "pp-")

      • t: any

        the page's translator (#539)

      Returns string

      the table row as HTML

    • Parameters

      • kind: any
      • member: any
      • prefix: any
      • intro: any
      • t: any

      Returns string

    • Draws the Export and import tab (#1713): the Export button, the box an export is pasted into, and — once one was checked — who signed it, its chain and the verdict, with the question to trust another realm's signer before anything is written.

      Parameters

      • view: any

        the policies view; view.state.transfer holds the last inspection and the document it was about (WebAnswers.redraw())

      • t: any

        the page's translator (#539)

      Returns string

      the tab as HTML

    • Draws the tab's account of this realm's own export signer and the signers it trusts, from GET /admin-api/policies/transfer (composed into the view as transfer): the algorithm, the paranoid row, the Policy Export Signing CA with the fingerprint another realm names to trust it, and the other realms' chains this realm holds for policy-signer. Nothing when the view carries no transfer.

      Parameters

      • transfer: any

        the transfer view, or undefined

      • t: any

        the page's translator (#539)

      Returns string

      the section as HTML