Makes the runtime.
the browser's objects: fetch, crypto (WebCrypto),
location, history, document, sessionStorage, navigator,
window, and, for a test, now (milliseconds; Date.now where left
out) and formDataOf (a form's FormData)
ProtectedaccessProtectedaccountProtectedaccountProtectedaccountsProtectedclientProtectedelsewhereProtectedenvProtectedexpiresProtectedidentityProtectedidentityProtectedkeyProtectedmetadataProtectednonceProtectedprefixProtectedpublicProtectedrefreshProtectedscopeProtectedsubjectStatic ReadonlyCALLBACK_Static ReadonlyCALLBACK_Static ReadonlySIGNIN_Runs the begin, browser registration and finish steps for a person.
the submitted user and role
nothing
Proves and upgrades a person's passkey from the admin console.
the person and classical credential id
nothing
Announces that this tab changed the browser's account list.
added, signed-out, forgotten or changed
nothing
Calls the management API.
GET or POST
the path under the realm, /admin-api/... with its query
Optionalbody: any
for a POST: an object (sent as JSON) or a FormData
the response
Calls the management API and reads its JSON.
GET or POST
the path under the realm
Optionalbody: any
for a POST, the body
the status and the JSON, or null when a sign-in began
The origin the management API answers on: this page's, or the API's listener's where it is on another (#472).
the origin
Builds the console's translator from the shell's locale member, and
marks the document's language and direction.
GET /admin-api/console's locale
nothing
The authorization server's metadata for this realm (RFC 8414), once.
the metadata, or {} where it cannot be read
Fetches a static JSON file the console draws over, once.
the console path, /admin/geo-outlines.json
the parsed file, or null when it could not be read
The authorization request's URL: pushed first where the realm requires it, the query otherwise.
the request's parameters, client_id among them
the URL to send the browser to
The realm's authorization request for this client.
the state
the PKCE verifier
Optionalextra: any
login_hint and prompt for a switch (#561), or
nothing
the URL
Sends the browser to sign in, remembering where to come back to.
the path and query to land on after
Optionalextra: any
for a switch (#561): login_hint (the account; '' for
none), prompt, expect (the subject the answer must be for) and
another (a sign-in as another account); nothing otherwise
nothing
The parameters of the authorization response this page was loaded with, from the fragment or, for a realm that offers only the query, the query.
the parameters
Closes every open field search but the one focus moved into.
the element that received focus
nothing
Asks before leaving a page whose forms were typed in.
whether to go on
The console path of a full path under this realm, or null for one that is not a console page.
the path
/admin... without the prefix, or null
Resolves a $ref into the OpenAPI document's components.
a schema, or a { $ref }
the schema it names
Discards what this client holds for the identity that just ended: the tokens, the subject, the DPoP key and its nonce, and the metadata. A key is made again for the next sign-in, as a page load makes one.
nothing
Discards every view this tab holds for the account it was.
nothing
The operation path a page's ?format= link names.
the console path
the link
json or svg
the operation's path and query
Draws a body inside the console's frame.
the page's title
the console path that marks the nav
the body
a drill-down's way up, or null
Optionalbanner: stringnothing
Draws a page that says something went wrong, with no frame.
what went wrong
the detail
nothing
Draws the bar that says the session ended, over the page and leaving it as it is.
what the last attempt came to, or ''
nothing
Draws the page for an account the console's shell answer refused.
{ status, json }, what the shell answer was
nothing
Draws the page in hand again, with what a just-finished act left.
for the page's view: what the act answered, or null
Optionalbanner: stringnothing
Ends the identity requests are sent for: every request in flight is aborted, and an answer to one sent before is not believed.
nothing
Makes this page load's DPoP key, once.
nothing
Fetches what every page needs once: the shell and the form table.
whether they are in hand
Fetches an API resource with this console's token and saves it.
the path and query under the realm, /admin-api/...
the file name a download attribute gave, or ''
nothing
Runs a field search's Find, Previous, Next or Add and draws the result.
the form's fields, the pressed button's among them
nothing
Finishes a sign-in on the callback: checks the state, redeems the code with the verifier and a proof, and goes where the sign-in began.
nothing
A form's FormData — through env.formDataOf where a test hands one in.
the form element
its FormData
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).
the form element
the button pressed, if any
the fields
Goes to a console path, adding it to the history.
the path and query under the realm, /admin/...
nothing
Runs a group owner search's Find, Previous or Next and draws the result.
the form's fields, the pressed button's among them
Optionalholder: string
optional; the view member holding the owners (group,
or role since #604)
OptionalstateKey: string
optional; the page state member (groupOwners)
nothing
At the callback in a popup: hands the answer to the page that opened it and closes.
the callback's query
nothing
Offers this callback to the tab that started the sign-in.
A same-device wallet opens the verifier's return in a new tab. The
passkey, when one is asked for, finishes there, and the authorization
server then sends that tab to this callback. The PKCE record was written
in the tab that called beginSignIn and never left it, so this tab
cannot redeem the code. It asks that tab to load this address. The code
rides only on the answer to a tab that said it holds the record. No
answer within a second, and this tab finishes the refusal itself.
the opened authorization response
whether a tab accepted the callback
The path and query being shown, without the realm prefix.
/admin/...?...
The page's path and query with its fragment, which is the tab it is on.
/admin/...?...#...
The login_hint a sign-in sends: what the caller names, else the tab's
account, else none.
what the sign-in was started with: login_hint ('' for
none at all, as Sign in with another account asks)
the hint, or ''
The abort signal of the identity requests are being sent for now.
the signal, or undefined where the browser has no AbortController
RFC 9207's iss on the authorization response, where the server sends one
(ASVS 5.0.0 10.2.2): it must name this server.
the response's parameters
false when the response came from somebody else
Keeps the tab's account, or forgets it.
{ sub, username }, or null to forget it
nothing
Keeps the nonce a response carried, for the next proof.
a fetch response
nothing
Keeps the tokens a token endpoint answered with.
the token response
nothing
Keeps what the page holds and sends the window to sign in.
nothing
Listens for changes to the browser's account list, once: each change
reads the list again and hands it to then, and changes nothing else.
draws the menu again from the list
nothing
Loads the scripts the page drawn names.
nothing
Marks the open tab of every tab bar on the page just drawn.
nothing
The operation and body a multipart form is sent as.
the operation's path
the form's FormData, the submitter's value in it
{ operation, body } for api()
The nonce of a sign-in whose PKCE verifier this is.
the sign-in's PKCE verifier
the nonce, base64url
Whether an ID Token carries the nonce of the sign-in that verifier began.
the compact JWT the token endpoint answered
the sign-in's PKCE verifier
whether the nonce is there and is that sign-in's
Puts a message at the head of the page drawn.
the message
nothing
Follows a link in place when it is a console page of this origin.
the click
nothing
Records the sidebar section opened, and closes the others.
the element a toggle event was fired at
nothing
Redeems the code a popup's callback handed back, and lets the waiting requests go — or not, for a different person.
{ state, code, error, error_description }
nothing
Handles a submitted form.
the submit event
nothing
Opens the sign-in in a window of its own.
nothing
The tabs the current fragment opens on the page last drawn.
{ label, href } per open tab, outermost first
Runs an owner search's Find, Previous, Next or Add and draws the result.
the form's fields, the pressed button's among them
nothing
Runs a route form's Application search or choice and draws the result.
the form's fields, the pressed button's among them
nothing
Makes the popup's one-use values and its address: a fresh verifier and a state marked as a popup's, for the realm's own authorization request.
nothing
Makes a DPoP proof for one request.
the request's method
the request's URL; its query and fragment are dropped
the access token it is sent with, or ''
the proof
Calls an operation that takes no token, sending an object as JSON, and reads its JSON.
GET or POST
the path under the realm
Optionalbody: any
for a POST, an object
Optionalheaders: any{ status, json, res }, json null where the body was not
JSON
Random bytes, base64url.
how many bytes
the encoding
Reads the browser's account list, keeps it, and keeps the tab's account from it: the signed-in subject's username, or forgets the account where the list is off.
the signed-in person's username as the application knows it, for a subject the list does not name
the list
Draws the account menu's items again from the list in hand, leaving the page as it is.
nothing
Draws the breadcrumb trail again for the current fragment.
nothing
Swaps the refresh token for a new pair, with a proof by the same key.
whether it worked
Takes the bar away.
nothing
The request schema of a POST operation, from the OpenAPI document.
the operation's path, /admin-api/groups/create
the schema with its $ref resolved, or null
The management API this console's tokens are audienced to.
the resource indicator
After a sign-in that left the page: puts back what it held, for the same realm, page and person, and says nothing was sent.
nothing
Scrolls the sidebar so the page's active tab is in its middle.
nothing
Draws the page the location names.
nothing
Saves a file an answer carried as base64.
its file name
its media type
its bytes
nothing
Hands a blob to the browser as a download.
the file's name
its contents
nothing
Keeps what the page holds in sessionStorage, for after a redirect.
nothing
Saves text drawn here as a file, as save() saves a response.
the file's content
its media type
the file name
nothing
Calls the management API at an absolute URL — api()'s work, and what
the explorer's window.stsConsoleFetch reaches.
the method
the absolute URL
Optionalbody: any
an object (sent as JSON), a JSON string, a FormData, or nothing
the response, or null when a sign-in began
Sends one request with the tokens in hand, refreshing them where they have run out.
the method
the absolute URL
Optionalbody: any
as send() takes it
the response, or NEEDS_SIGN_IN when no token will do
Sets the signed-in administrator's language and draws the page again in it; an empty tag follows the browser. A refusal is said on the page.
a tag, or ''
nothing
SHA-256 of a string, base64url.
the string
the digest's encoding
Shapes a form's fields to an operation's request schema.
the form's fields
the operation's request schema, or null for none
Optionalunchecked: string[]
optional; the form's unticked checkboxes' names, sent
as false where the schema takes that member as a boolean
the body to send
Waits for the person to sign in again, keeping the page.
true when the same person is signed in again and a waiting request may be sent; false when the window left to sign in or a different person came back
Signs this tab in as another account: a fresh sign-in (prompt=login)
with no hint, whose account the tab then is.
nothing
Starts the console: wires the document and draws the first page.
nothing
Starts collecting announcements for the realm the shell is in.
nothing
The tab's account, where one is kept.
{ sub, username }, or null
Sends a POST form to the operation that mirrors it and draws the answer.
the form element
the button that submitted it, if any
nothing
Switches this tab to another signed-in account of the browser.
the account's key, from the menu
nothing
Switches to another realm's copy of a console path.
the realm
the console path and query to show there
nothing
Makes the address's fragment the :target of the page just drawn.
nothing
Posts a form to the token endpoint with a DPoP proof.
the form fields
the response's JSON and status
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.
/oauth2/token, /web/locales/catalogs.json
the absolute URL
Wires every Select all and None box on the page drawn.
nothing
Shows each choice select's panels for its value, now and on change.
nothing
Reveals and wires the copy buttons on the page drawn.
nothing
Wires the buttons that read a chosen file into a box of the page.
nothing
Wires every ordered choice's Select all switch on the page drawn.
nothing
Wires the buttons that save the page's own view as a JSON file.
nothing
Reads the static catalog files the shell named into the shape the translator takes. A file that cannot be had falls back to the one request that carries them all, so a page is never drawn in bare keys.
the shell's locale
the locale with its catalogs
StaticanswerWhether an answer is for the subject asked for: the one subject check the console's popup made first (#508) and every switch makes now (#561).
the subject asked for
the ID Token the token endpoint answered
whether its sub is that subject
StaticattributeOne attribute of the shell's <html> element.
the browser's objects
the attribute, data-sts-build
its value, or '' where it is absent
Staticb64uBase64url without padding.
the bytes
the encoding
StaticbasesReads the shell's data-sts-* attributes into bases by path segment.
the browser's objects; its document is read
the attribute for each first path segment
the bases, without a trailing slash, '' where absent
StaticclaimA string claim of an ID Token, read without verifying it.
the compact JWT, or nothing
the claim
its value, or ''
StaticfieldsA form's fields as an object: a name that repeats is an array, as the console's own body parser reads it.
the form's FormData
the fields
StaticformForm-encodes parameters, a value that is an array as the parameter
repeated — RFC 8707's resource, which a client asking for two
resources sends twice (#607). URLSearchParams(object) would join the
array with commas into one value naming no resource.
the parameters
the encoded form
StaticformWhat one form holds, as kept across a sign-in.
the form
whether it is the form being sent
{ action, pending, fields }
StaticfromBytes of a base64url string.
the encoding
the bytes
StatickeepsWhether a form control's value may be kept across a sign-in: never a password, a file, a hidden field, a button, or a control named or marked for a secret.
the control
true when it is kept
StaticprefixSplits a path at a surface's base: the realm prefix before it.
a path, /realm/acme/portal/keys or /portal
the surface's first path, /portal
the prefix, '' in the default realm and where the path is not under the base
StaticprefixSplits a path at the console: the realm prefix before /admin.
a path, /realm/acme/admin/users or /admin
the prefix, '' in the default realm
StaticqueryParses a query string into an object, the last value of a repeated name winning as express's own parser does for a single value.
?a=1&b=2 or ''
the query
StaticrealmPrefixes every root-relative href, action, formaction and src.
the page
the realm's path prefix, or '' for the default realm
the page with its links in the realm
StaticrestorePuts kept values back into the forms drawn: the same form by its place and its address, the same control by its name and order.
the forms drawn, in document order
formSnapshot()'s answers, in the same order
{ restored, unplaced }, counts of values
StaticsplitSplits every joined field (a|b = x|y) of a form into its parts
(a = x, b = y), in place.
the form's FormData
StaticstepMoves 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.
the link
the link to use
StaticstepTakes a step's id off an API address, for a header (#1454).
the operation's address
the address, and the headers that carry what left it
StaticsubjectThe sub of an ID Token, read without verifying it.
the compact JWT, or nothing
the subject, or ''
StaticuncheckedThe names of a form's checkboxes that are not ticked, where no box of that name is.
the form element
the names
StaticwebWebCrypto's names for a JWS algorithm: how its key is imported and how a signature is verified, or null for one WebCrypto does not do.
the JWS alg
{ importAs, verifyAs }, or null
The static console's runtime: sign-in, DPoP, routing and forms.