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

    • Parameters

      • t: any

      Returns string

    • 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

    • Parameters

      • kind: any
      • member: any

      Returns boolean

    • 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

    • 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

    • Parameters

      • profile: any
      • t: any

      Returns string

    • Parameters

      • schema: any
      • t: any

      Returns string

    • Parameters

      • named: any
      • draft: any

      Returns any