iya-sts
    Preparing search index...

    Draws the delegation pages and the pieces they share from their answers.

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

    Index
    • Draws /admin/delegation from its answer.

      Parameters

      • ctx: any

        the render context (WebKit.context())

      • json: any

        the answer of GET /admin-api/delegation

      Returns string

      the body as HTML

    • Draws /admin/delegation/allowed from its answer.

      Parameters

      • ctx: any

        the render context (WebKit.context())

      • json: any

        the answer of GET /admin-api/delegation/allowed

      Returns string

      the body as HTML

    • Draws the search over the applications the permissions register touches.

      Each result opens that application's group at /admin/delegation/cluster.

      Parameters

      • t: any
      • view: any

        the view holding the register and its clusters

      • selectedKey: any

        the application currently selected, if any

      • carry: any

        the parameters carried into each result's link

      • here: any

        the page the search submits to

      Returns string

      the chooser, or a note when there is nothing, as HTML

    • Picks the application chooser's two parameters out of a query.

      Parameters

      • query: any

        the request's query

      Returns {}

      permappq and permappfrom, where set

    • Draws the table of groups of applications joined by permissions.

      Parameters

      • t: any
      • groups: any

        the clusters view, for its counts

      • shown: any

        the groups on this page

      • carry: any

        the parameters carried into each link

      • apps: any

        the answer's registered applications, by identifier

      Returns string

      the table as HTML

    • Draws /admin/delegation/application from its answer.

      Parameters

      • ctx: any

        the render context (WebKit.context())

      • json: any

        the answer of GET /admin-api/delegation/application

      Returns string

      the body as HTML

    • Draws /admin/delegation/chain from its answer.

      Parameters

      • ctx: any

        the render context (WebKit.context())

      • json: any

        the answer of GET /admin-api/delegation/chain

      Returns string

      the body as HTML

    • Re-emits the page's section searches (appq, appfrom, userq, userfrom, permq, grantq) as hidden inputs, so a form that is none of them does not clear them.

      Parameters

      • query: any

        the request's query

      Returns string

      hidden inputs as HTML, one per non-empty search

    • Draws /admin/delegation/cluster from its answer.

      Parameters

      • ctx: any

        the render context (WebKit.context())

      • json: any

        the answer of GET /admin-api/delegation/cluster

      Returns string

      the body as HTML

    • Draws /admin/tokens/credential from its answer.

      Parameters

      • ctx: any

        the render context (WebKit.context())

      • json: any

        the answer of GET /admin-api/tokens/credential

      Returns string

      the body as HTML

    • Draws the search over every application a delegation act named, each result linking to /admin/delegation/application by its identifier.

      Parameters

      • t: any
      • chooser: any

        the answer's slice of it (AdminViews. delegationChooser()): total, the entries on the pane, slice

      • selectedKey: any

        the application already chosen, marked in the pane

      • here: any

        the page this is drawn on, as path and query

      Returns string

      the chooser as HTML, or a note when there is none to choose

    • Draws every application some delegation act named, with its roles, acts, credentials, relationships and when it was last seen.

      Parameters

      • t: any
      • catalogue: any

        the delegation register's application list

      • facts: any

        the answer's facts: users (the keys seen here) and apps (the registered applications named on the page)

      • carry: any

        the delegation table's filter, kept in each link

      Returns string

      the table as HTML

    • Draws the credentials one direction of a delegation carried.

      Parameters

      • list: any

        the consumed or produced credentials

      • label: any

        the direction's label, as HTML

      Returns string

      the list as HTML, or an empty string when there is none

    • Draws one line of the delegation picture as a row of the relationship index, saying in words what the picture says in colour.

      An unpoliced act collapses to "nothing checks this" with the reason in the tooltip; a refusal prints in full.

      Parameters

      • t: any
      • edge: any

        a graph edge from delegation.graph()

      • lookOf: any

        function giving a node id's label

      Returns string

      the row as HTML

    • Draws one box of the delegation picture as a row of the party index: label, shape, links, roles, acts and protocols.

      Parameters

      • t: any
      • node: any

        a graph node from delegation.graph()

      • facts: any

        the answer's facts: users (the keys seen here) and apps (the registered applications named on the page)

      • look: any

        the node's look (label, identifier, shape, dashed)

      Returns string

      the row as HTML, or '' for the service's own node

    • Draws whether a delegation act was issued or refused.

      Parameters

      • t: any
      • row: any

        a delegation row

      Returns string

      a as HTML

    • Draws one party of a delegation chain, as up to two links.

      The party can be a person, an application, or both; a name neither store holds is drawn marked rather than left out.

      Parameters

      • t: any
      • party: any

        a party of a delegation row

      • facts: any

        the answer's facts: users (the keys seen here) and apps (the registered applications named on the page)

      Returns string

      the cell's content as HTML, or a dash

    • Draws who may act for whom at WS-Trust and RFC 8693, read only.

      Three paged tables: the pairs, the intermediaries and the people who carry either flag.

      Parameters

      • ctx: any

        the render context, for the page parameters

      • view: any

        the view from adminViews.delegationPolicyView()

      Returns string

      the section as HTML

    • Draws the roles an application played in one act, one per line, each with its description as a tooltip.

      Parameters

      • roles: any

        the role keys

      • vocabulary: any

        the answer's roles, the register's role list

      Returns any

      the cell's HTML, or a dash when there are none

    • Draws one row of the delegation acts table.

      Parameters

      • t: any
      • row: any

        a delegation row from common/delegation.js

      • facts: any

        the answer's facts: users (the keys seen here) and apps (the registered applications named on the page)

      • options: any

        listView for the chain link, and chainLink (default true), false on the chain page itself

      Returns string

      a as HTML

    • Draws one credential that came out of a delegation act as a table row.

      Parameters

      • t: any
      • token: any

        the credential row from the delegation graph

      • labelOf: any

        function giving a node id's label

      • Optionalextra: any

        optional; HTML for a leading cell, such as the role the application played

      Returns string

      the row as HTML

    • Draws the search over every identity the identity and delegation registers know, each result linking to /admin/delegation/user by its normalised key.

      Parameters

      • t: any
      • chooser: any

        the answer's slice of it (AdminViews. delegationChooser()): total, the entries on the pane, slice

      • selectedKey: any

        the identity already chosen, marked in the pane

      • here: any

        the page this is drawn on, as path and query

      Returns string

      the chooser as HTML, or a note when there is nobody to choose

    • Draws every identity the identity and delegation registers know, with where it came from, sign-ins, tokens, artifacts, acts and protocols.

      Parameters

      • t: any
      • catalogue: any

        the union of the two registers' identities

      • facts: any

        the answer's facts: users (the keys seen here) and apps (the registered applications named on the page)

      • carry: any

        the delegation table's filter, kept in each link

      Returns string

      the table as HTML

    • Draws a delegation picture from its answer, with a note under it linking the standalone SVG and the graph as JSON.

      Parameters

      • t: any
      • json: any

        the answer: svg and drawing (width, height, failed)

      • path: string

        the page's own path, for the two links

      • params: any

        the page's query, carried into the two links

      Returns string

      the drawing and its note as HTML

    • The note under a Kerberos S4U row's mode, or nothing for any other row.

      Parameters

      • t: any
      • type: any

        the act's mechanism

      Returns string

      HTML

    • Draws /admin/delegation/map from its answer.

      Parameters

      • ctx: any

        the render context (WebKit.context())

      • json: any

        the answer of GET /admin-api/delegation/map

      Returns string

      the body as HTML

    • Draws a delegation act's mode: impersonation or delegation.

      Parameters

      • t: any
      • mode: any

        impersonation, delegation or anything else

      Returns string

      a as HTML, a dash for any other mode

    • Draws one permission a resource application exposes.

      Parameters

      • t: any
      • one: any

        a permission from the configured register

      • listView: any

        the list state carried into links and the form

      • Optionaloptions: any

        optional; readOnly swaps the Remove form for a link

      Returns string

      a as HTML

    • Draws one grant of a permission to a client application.

      A grant whose permission no application defines is marked dangling.

      Parameters

      • t: any
      • one: any

        a grant from the configured register

      • listView: any

        the list state carried into links and the form

      • Optionaloptions: any

        optional; readOnly swaps the Revoke form for a link

      Returns string

      a as HTML

    • Draws the hidden back input the permission forms carry.

      Parameters

      • listView: any

        the list state to return to

      Returns string

      an as HTML

    • Draws the delegated permissions register: the paged permissions and grants tables, and — when editable — the Expose an API and Define a permission forms and each row's button.

      Parameters

      • ctx: any

        the render context (WebKit.context())

      • view: any

        the delegation view holding the register, with listState (permissionsListState()'s answer) and allApplications (every application in the registry, for the two selects)

      • listView: any

        the list state carried into links and forms

      • editable: any

        true on Protocols → Delegation, which configures the register; false on Monitoring → Delegation, which only reads it

      Returns string

      the section as HTML

    • Draws one Kerberos account's delegation flags and their effects.

      Parameters

      • account: any

        an account row from the Kerberos delegation policy

      Returns string

      a as HTML

    • Draws one configured Kerberos delegation pair.

      Parameters

      • t: any
      • pair: any

        a pair from the Kerberos delegation policy

      Returns string

      a as HTML

    • Draws /admin/delegation-settings from its answer.

      Parameters

      • ctx: any

        the render context (WebKit.context())

      • json: any

        the answer of GET /admin-api/delegation-settings

      Returns string

      the body as HTML

    • Draws /admin/delegation/user from its answer.

      Parameters

      • ctx: any

        the render context (WebKit.context())

      • json: any

        the answer of GET /admin-api/delegation/user

      Returns string

      the body as HTML

    • Draws one credential from the issued register as a row: when, what, the flow that issued it, its holder, its state and its session.

      Parameters

      • t: any
      • credential: any

        a row of the issued-credential register

      • facts: any

        the answer's facts: users (the keys seen here) and apps (the registered applications named on the page)

      Returns string

      the row as HTML

    • Draws one line of a person's picture as a row, in words, over its five relations (issued to, signed in, issued for, acts for, reaches).

      Parameters

      • t: any
      • edge: any

        an edge from the person's graph

      • lookOf: any

        function giving a node id's label

      Returns string

      the row as HTML

    • Draws what issued one credential: the grant it states (with the OIDC name where there is one), an artifact's own mechanism, or "no grant stated".

      Parameters

      • t: any
      • credential: any

        a row of the issued-credential register

      Returns string

      the cell's HTML

    • Draws one box of a person's picture as a row, adding the credentials and flows columns to what delegationNodeRow() draws.

      Parameters

      • t: any
      • node: any

        a node from the person's graph

      • facts: any

        the answer's facts: users (the keys seen here) and apps (the registered applications named on the page)

      • look: any

        the node's look (label, identifier, shape, dashed)

      Returns string

      the row as HTML, or '' for the service's own node