iya-sts
    Preparing search index...

    Class export=

    The sign-in surface's runtime.

    Hierarchy (View Summary)

    Index
    accountChannel: any
    accounts: any
    drawn: number
    drawnAt: string
    elsewhere: any
    env: any
    flash: any
    formTable: any
    i18n: export=
    indexRows: any[] = null
    lastAnswer: any
    options: SurfaceOptions
    prefix: string
    t: any
    view: any
    NO_ACCOUNT_CONTROL: string[] = ...
    • The account control for the page being drawn: '' with the list off and on a path that never carries it.

      Returns string

      the control in its slot, or ''

    • Sends the account picker's act — Continue or Sign in again (select), Forget, or Use another account — to the operation the index names for the button pressed, with the account's key (never a sid).

      Parameters

      • fields: any

        the form's fields: action and account

      Returns Promise<void>

      nothing

    • Draws what an act answered.

      Parameters

      • path: string

        the surface's path the form was on

      • answer: any

        { status, json }

      Returns Promise<void>

      nothing

    • Arms the username field's passkey autofill where the browser has it.

      Returns void

      nothing

    • Arms a ceremony on the pending sign-in.

      Returns Promise<any>

      the armed options, or null with the refusal drawn

    • The username field's autofill (conditional mediation). Its controller is claimed before the first await, so a page drawn twice arms it once, and a page drawn meanwhile can abort it before it asks.

      Returns Promise<void>

      nothing

    • Sends Allow or Deny, with the limits a person lowered, to the operation the index says is the consent screen's door.

      Parameters

      • fields: any

        the form's fields: action and the limit controls

      Returns Promise<void>

      nothing

    • The context a renderer is handed: the surface's, with the refusal of the last act and whether the autofill is armed.

      Parameters

      • query: any

        the location's query

      Returns any

      the context

    • A page that could not be drawn: where an act was just refused and the page it was on can no longer be drawn (the step it named is gone), the act's sentence is the one that says why. put() adds the way off, since this page draws neither a link nor a button.

      Parameters

      • title: string

        what went wrong

      • detail: string

        the detail

      Returns void

      nothing

    • Draws the page in hand; an end page carries its own refusal, so the view's status is not said over it a second time.

      Returns void

      nothing

    • Whether the page in hand is an embedded one.

      Returns boolean

      true on the SPNEGO sign-in's bodies

    • Reads the API's index, once.

      Returns Promise<boolean>

      whether it is in hand

    • The page row for a path.

      Parameters

      • path: string

        the surface's path

      Returns SurfacePage

      the row, or null

    • The fingerprint to send, where the script computed one.

      Returns string

      the visitorId, or ''

    • A form's fields as an object: a repeated name is an array, the pressed button's name and value are included, and the CSRF field a form drawn by the server carried is left out (an API call is not a form post).

      Parameters

      • form: any

        the form element

      • submitter: any

        the button pressed, if any

      Returns any

      the fields

    • Goes to one of the surface's paths, adding it to the history.

      Parameters

      • to: string

        the path and query under the realm

      Returns Promise<void>

      nothing

    • Goes where an answer names: in place where it is one of this surface's pages on this origin — a step after the screen, the same page again — and as a navigation otherwise (back to the caller, another surface).

      Parameters

      • location: string

        the address, as the answer named it

      Returns Promise<void>

      nothing

    • The pending sign-in's or the step's id, off the location.

      Returns string

      the id

    • Reads the browser's account list as the surface starts; with it on, the control's words are loaded with the page's and other tabs' changes are listened for.

      Returns Promise<void>

      nothing

    • Loads /authn/fingerprint.js once, where the view asks for it.

      Returns void

      nothing

    • Follows an act's answer.

      Parameters

      • answer: any

        { status, json }

      Returns Promise<void>

      nothing

    • Follows a link in place, except on an embedded page, whose links are the browser's — and except a link TO an embedded page, which is a navigation the server has to answer: the SPNEGO sign-in's state (and the RFC 4559 challenge itself) arrives only on that response, so a page routed in place had none and said it could not be drawn (2026-10-12).

      Parameters

      • event: any

        the click

      Returns void

      nothing

    • Handles a submitted form: the language chooser, a GET form's navigation, or an act.

      Parameters

      • event: any

        the submit event

      Returns void

      nothing

    • The operation a form's button is, from the API's index.

      Parameters

      • path: string

        the surface's path the form is on

      • action: string

        the button's action, for the screen

      Returns any

      the operation, or null

    • The button's ceremony, or the autofill's.

      Parameters

      • conditional: boolean

        the autofill's (conditional mediation)

      Returns Promise<void>

      nothing

    • A promise that resolves after a while.

      Parameters

      • ms: number

        how long, in milliseconds

      Returns Promise<void>

      the promise

    • The waiting page asks whether its link was opened; the page is drawn again only when the answer changed (opened elsewhere, ended).

      Returns Promise<void>

      nothing

    • An operation that takes no token, its step id in a header where asked.

      Parameters

      • method: string

        the HTTP method

      • path: string

        the address

      • Optionalbody: any

        the body

      • Optionalheaders: any

        further headers

      Returns Promise<any>

      the answer

    • Puts a page in the document, then wires what a page of this surface runs: the passkey autofill and the fingerprint.

      Parameters

      • title: string

        the document's title

      • body: string

        the page's body

      • ctx: any

        the context

      Returns void

      nothing

    • Draws the page in hand again — an embedded page from its state, in the language just chosen.

      Returns void

      nothing

    • Reads the list again and draws the control again in place; a change this page's own act made is announced to the other tabs.

      Parameters

      • announce: boolean

        whether a change is this page's to announce (never when a message asked)

      Returns Promise<void>

      nothing

    • Draws the screen again with a refusal on it, from a fresh view.

      Parameters

      • why: string

        the sentence, English

      Returns void

      nothing

    • Draws the page the location names; an embedded page from the shell's state, any other from its operation.

      Returns Promise<void>

      nothing

    • Saves a file an answer carried as base64.

      Parameters

      • name: string

        its file name

      • mime: string

        its media type

      • base64: string

        its bytes

      Returns void

      nothing

    • Hands a blob to the browser as a download.

      Parameters

      • name: string

        the file's name

      • blob: Blob

        its contents

      Returns void

      nothing

    • Saves text as a file.

      Parameters

      • name: string

        the file's name

      • mime: string

        its media type

      • text: string

        its contents

      Returns void

      nothing

    • Sends an act: JSON, with the page's CSRF token.

      Parameters

      • path: string

        the operation's path, its {id} filled

      • body: any

        the act's fields

      Returns Promise<any>

      { status, json }

    • Sends the form a restart at the home cell names, as the page #98 drew sent it: a GET is followed, a POST is posted with its fields.

      Parameters

      • form: any

        { method, action, fields }

      Returns void

      nothing

    • Sends a ceremony's result (or why there is none) to the sign-in.

      Parameters

      • credential: any

        the assertion's JSON form, or { error, message }

      Returns Promise<void>

      nothing

    • Draws a view an act answered in place of the page in hand, under the act's sentence (#574: a wallet sign-in's refusal), or a problem page where the answer carried none.

      Parameters

      • json: any

        the view, or null

      • error: string

        the sentence, English

      Returns void

      nothing

    • Tells the credential manager of a credential this realm holds for nobody (WebAuthn Level 3 section 5.1.10), where the answer named one.

      Parameters

      • credentialId: string

        the credential's id, or ''

      Returns void

      nothing

    • A step's Start over: the step named in the location (mfa for a second factor, set-up or emailed factor, change for the forced password change) is ended, and the answer sends the browser to the sign-in screen for the same request.

      Returns Promise<void>

      nothing

    • Sends a step's form to the operation its button is.

      Parameters

      • path: string

        the page the form is on

      • fields: any

        the form's fields, the pressed button's action among them

      Returns Promise<void>

      nothing

    • The passkey step's ceremony: armed by the API, run by the browser, and its result sent back — a registration where the step enrols a key, an assertion otherwise (the API's mode).

      Parameters

      • key: string

        the passkey chosen (#534), or ''

      • Optionallane: string

        the lane a registration is made in (#643), or ''

      • Optionalclassical: boolean

        the classical retry of a registration (#944): the API is asked for the classical algorithms only, and refuses where the realm forbids it

      Returns Promise<void>

      nothing

    • Aborts the autofill's ceremony, where one is in flight.

      Returns boolean

      whether one was

    • Sends a form of this surface to the operation its button is.

      Parameters

      • form: any

        the form

      • submitter: any

        the button pressed, if any

      Returns Promise<void>

      nothing

    • The surface's path of a full path, or null: every path under /authn, and the consent screen's, which the authorization endpoint sends a person to at /oauth2/consent (#576).

      Parameters

      • pathname: string

        the path

      Returns string

      the path without the prefix, or null

    • This realm's address for one of its paths: on this origin, or on the listener that answers the path where the shell named one.

      Parameters

      • path: string

        /oauth2/token, /web/locales/catalogs.json

      Returns string

      the absolute URL

    • Runs one WebAuthn call once the last has settled (lastCall).

      Parameters

      • kind: string

        get or create

      • ask: any

        the call's options

      • retry: boolean

        whether this ceremony just aborted the autofill: Chrome can refuse the next call as pending for a moment after an abort, so an OperationError is asked once more

      Returns Promise<any>

      the credential, or null

    • One attribute of the shell's <html> element.

      Parameters

      • env: any

        the browser's objects

      • name: string

        the attribute, data-sts-build

      Returns string

      its value, or '' where it is absent

    • Reads the shell's data-sts-* attributes into bases by path segment.

      Parameters

      • env: any

        the browser's objects; its document is read

      • attributes: Record<string, string>

        the attribute for each first path segment

      Returns any

      the bases, without a trailing slash, '' where absent

    • The brand header's markup, as common/branding.ts's headerMarkup() draws it on the server (its preview): the logo, a link where one is set, and the name, each escaped; empty where there is neither.

      Parameters

      • brand: any

        brandOf()'s facts

      Returns string

      the markup

    • The realm's brand facts the shell put on <html> (#717): the name, the logo's address, its alternative text and its link.

      Parameters

      • root: any

        the document's <html> element, or nothing

      Returns any

      the facts, each '' where absent

    • A registration's options from the armed step: what /authn/webauthn.js built from the page's data attributes.

      Parameters

      • c: any

        POST …/webauthn/options's answer

      Returns any

      the publicKey options

    • The state the shell carried, or null where it carried none or it does not read.

      Parameters

      • env: any

        the browser's objects

      Returns any

      { view, uiLocales?, preferredLanguage? }, or null

    • Escapes text for HTML, as Html.esc() does.

      Parameters

      • value: unknown

        anything

      Returns string

      the escaped text

    • Whether a page's body already offers a way on: a link, or a button. The language chooser is drawn around the body and is not one.

      Parameters

      • body: string

        the page's body

      Returns boolean

      true when the body has a link or a button

    • The catalog namespaces the page at the location draws: the SPNEGO sign-in's spnego beside authn there, the consent screen's consent alone (#576), authn and wallet (#574) everywhere else.

      Parameters

      • env: any

        the browser's objects

      Returns string[]

      the namespaces

    • Splits a path at a surface's base: the realm prefix before it.

      Parameters

      • pathname: string

        a path, /realm/acme/portal/keys or /portal

      • base: string

        the surface's first path, /portal

      Returns string

      the prefix, '' in the default realm and where the path is not under the base

    • Parses a query string into an object, the last value of a repeated name winning as express's own parser does for a single value.

      Parameters

      • search: string

        ?a=1&b=2 or ''

      Returns any

      the query

    • Prefixes every root-relative href, action, formaction and src.

      Parameters

      • html: string

        the page

      • prefix: string

        the realm's path prefix, or '' for the default realm

      Returns string

      the page with its links in the realm

    • The ceremony's request options from the armed challenge.

      Parameters

      • armed: any

        POST …/passkey/options's answer

      Returns any

      the publicKey options

    • An assertion's options from the armed step: every key the person holds (no key has a role since #1135), the authenticator picking.

      Parameters

      • c: any

        POST …/webauthn/options's answer

      Returns any

      the publicKey options

    • Moves a sign-in step's id from a link's query to its fragment (#1454). /authn/spnego stays: RFC 4559's exchange has no script to read one.

      Parameters

      • href: string

        the link

      Returns string

      the link to use

    • Takes a step's id off an API address, for a header (#1454).

      Parameters

      • path: string

        the operation's address

      Returns any

      the address, and the headers that carry what left it

    • The way off a page that has none: close this tab and start over, and a link to the realm's root page (href="/", prefixed with the realm when the page is put). In the page's language where the authn catalog is loaded, and in English where it is not — the consent screen loads none of it, and a refusal's own sentence stays English either way. The English here is authn/en.json's stuck.close and stuck.home.

      Parameters

      • t: any

        the page's translator

      Returns string

      the markup