Makes the runtime.
the browser's objects (SpaClient's), and for a test
formDataOf
ProtectedaccessProtectedaccountProtectedaccountProtectedaccountsProtectedclientProtectedelsewhereProtectedenvProtectedexpiresProtectedfreshProtectedidentityProtectedidentityProtectedissuerProtectedkeyProtectedmetadataProtectednonceProtectedprefixProtectedpublicProtectedrefreshProtectedscopeWhat the step's bar's buttons do, for a test that presses one.
ProtectedsteppingProtectedsubjectProtectedwriteProtectedwriteStatic ReadonlyCALLBACK_Static ReadonlyCALLBACK_Static ReadonlyFRESH_How recent a sign-in a scope in freshScopes asks for before a person is
asked to sign in again, in seconds (max_age).
Static ReadonlyINTERACTION_The authorization errors a silent step answers that a sign-in in the window can mend (OpenID Connect Core section 3.1.2.6).
Static ReadonlySIGNIN_Static ReadonlySTEP_The channel a second authorization's callback answers on.
Static ReadonlySTEP_The state prefix that marks a second authorization's callback.
Static ReadonlySTORAGE_The key a write is tried under, and removed at once.
Static ReadonlyWEBCRYPTO_The WebCrypto calls a sign-in makes, each a method of crypto.subtle.
Static ReadonlyWRITE_How long before a write token's end it is no longer sent, in milliseconds.
Static ReadonlyWRITE_The longest a write token is used, in milliseconds, whatever its own lifetime.
Announces that this tab changed the browser's account list.
added, signed-out, forgotten or changed
nothing
Draws what an act answered.
the portal path the form was on
{ status, json }
nothing
Calls the account API with the person's token and reads its JSON; a request that needs a sign-in sends the window to one, back to this page.
GET or POST
the path under the realm, /account-api/... with its
query
Optionalbody: any
for a POST, an object
{ status, json, res }, or null when a sign-in began
Builds the translator from language data, and marks the document's language and direction.
{ negotiated, catalogs }
nothing
The authorization server's metadata for this realm (RFC 8414), once.
the metadata, or {} where it cannot 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
prompt and acr_values for a step-up, or nothing
the URL
Opens the step's window, or offers to, and waits for its callback's answer or the person's Cancel.
the channel the callback answers on
{ state, url }
stepWords()
what the bar says meanwhile
the answer { code, iss, error, error_description }, or
{ cancelled: true }
Sends the browser to sign in, remembering where to come back to.
the path and query to land on after
Optionalextra: any
prompt and acr_values for a step-up; for a switch
(#561) login_hint ('' for none), expect (the subject the answer
must be for) and another; or nothing
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
The portal's callback, a second authorization's redirect_uri.
the URL
Asks before leaving a page whose forms were typed in.
whether to go on
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 and token this tab holds for the account it was.
nothing
Draws a page that says something went wrong, with no frame.
what went wrong
the detail
Optionalmore: string
optional; markup drawn after the detail (#2220: the link to what this service needs from a browser)
nothing
Draws the step's bar over the page, which stays as it is under it.
what it says
{ open, cancel }, each a function or null; null for
a bar that only says something and closes with its button
nothing
Draws the page in hand from its view.
nothing
Stops using a write token: it was refused, or a sign-in replaced it.
Optionalresource: string
the resource indicator, or nothing for every one
nothing
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
Finishes a sign-in on the callback.
nothing
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 portal path, adding it to the history.
the path and query under the realm, /portal/...
nothing
At the application's callback in a step's window: hands the answer to the page that opened it and closes, redeeming nothing.
the opened authorization response
the callback's path, which the address is put back to
whether this was a step's callback
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.
/portal/...?...
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
The address of a path at the realm that issued the tokens in hand
(issuerPrefix, #2200): the authorization server's endpoints, the
callback a token is redeemed at, and the resource a token is for. The
realm on screen's where none was recorded, or it is that realm.
/oauth2/token, /admin/callback, /admin-api
the absolute URL
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
Signs in on this page for a write scope. The change waiting is not sent: the person makes it again when the page is back, with the page's choices put back.
the scope to sign in with
login, or '' for none
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
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
The words a page without session storage draws, in the page's
language: browser.noStorage.title and browser.noStorage.text, and
the translator they came from.
the surface's catalog namespace
{ t, title, text }
The words a page without WebCrypto draws, in the page's language: the
namespace's noWebCrypto.title and noWebCrypto.text, and the
translator they came from (with the footer's words in it).
the surface's catalog namespace (consoleRuntime,
portal, report)
{ t, title, text }
Follows a link in place when it is a portal page of this origin.
the click
nothing
Records the navigation section opened, and closes the others.
the element a toggle event was fired at
nothing
Handles a submitted form: the sign-out, a GET form's navigation, or an act.
the submit event
nothing
The part of a page's query its operation takes (#1483): the operation refuses a name it does not declare, and an address holds others. With no table in hand, everything: the API says what it will not take.
the GET operation's path
the page's query
the query to send
The owner token, refreshed when it is missing or running out.
{ token, signIn }: the token ('' where none is to be had), and
whether the grant itself is gone, so signing in again is the way
Calls the management API with the owner token (#607) and reads its JSON. A token the authorization server would not issue — the person owns nothing now — answers 403 with the reason, drawn on the page; a grant that is gone sends the window to sign in again.
GET or POST
/admin-api/... with its query
Optionalbody: any
for a POST, an object
{ status, json }, or null when a sign-in began
Tells whether the owner token carries a scope.
owner:read or owner:write
whether it does
The management API, the second resource the portal's sign-in names (#607).
the resource indicator
The portal path of a full path under this realm, or null.
the path
/portal... without the prefix, or null
The translator a page drawn before sign-in says a problem with: the
namespace's catalogs (and, with every WebI18n, the browser one), or
none where no catalog can be had, so the English is drawn.
the surface's catalog namespace
the translator
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
Puts a page in the document and wires what it carries.
the document's title
the page
nothing
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
Swaps the refresh token for a new pair.
whether it worked
Takes the step's bar away.
nothing
Posts a form's finish and does not draw what it answered.
the ceremony's form
the fields that replace the form's, the credential
nothing
The account API this portal's tokens are audienced to.
the resource indicator
After a sign-in that left the page: puts its choices back for the same realm, page and person, and says nothing was sent.
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 the page's choices across a sign-in that leaves it (#2220,
common/web_page_state.ts).
nothing
Saves text as a file.
the file's name
its media type
its contents
nothing
Sends one request with the tokens in hand, refreshing them where they have run out.
the method
the absolute URL
Optionalbody: any
an object, sent as JSON, or nothing
the response, or NEEDS_SIGN_IN
SHA-256 of a string, base64url.
the string
the digest's encoding
Scrolls what an act answered once into view, if anything was drawn.
nothing
Signs this tab in as another account: a fresh sign-in (prompt=login)
with no hint, whose account the tab then is.
OptionalreturnTo: string
where to land after; this page where left out
nothing
Starts the portal: wires the document and draws the first page.
nothing
Starts collecting announcements for the person's realm.
nothing
One second authorization, the body of stepUp().
the resource indicator
the scopes asked for
the scopes the write token in hand carries
whether a fresh sign-in is asked for
whether a write token carrying every scope asked for is held
Gets a write token carrying the scopes a refusal named, by a second authorization, and keeps it for its resource.
the resource indicator the write was for
the scopes the refusal named
Optionalfresh: boolean
whether a fresh sign-in is asked for whatever is named
true when a write token carrying every scope asked for is held and the write may be sent again; false otherwise
The step's bar's words, from the portal's catalog where it has them.
SpaClient.stepWords()'s shape
The tab's account, where one is kept.
{ sub, username }, or null
Sends a POST form to the operation that mirrors it, and draws what it answered.
the form
the button pressed, if any
nothing
Sends an owner's form to the management API (#607) and draws the page again, with the answer's message — and a secret it answered once, said once — or its errors.
/admin-api/<kind>/<action>
the form's fields
nothing
Switches this tab to another signed-in account of the browser.
the account's key, from the menu
nothing
Makes the address's fragment the :target of the page just drawn.
nothing
The token a request is sent with: a GET's is always the read token, anything else the write token for its resource while one is held.
the request's method
the resource indicator
the token, or '' where none is held
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 the page drawn: the copy buttons and the WebAuthn ceremony.
nothing
The scopes a write token for a resource carries, while it is held.
the resource indicator
the scope values
The write token for a resource while it may still be sent, or ''.
the resource indicator the token is audienced to
the token, or ''
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
StaticbrowserWhether the browser check marked this document as one this browser cannot run.
the document
true where <html data-sts-unsupported="1">
StaticbrowserThe link to what this service needs from a browser (#2220), as a paragraph, in the page's language: what each "this browser cannot" page carries.
the page's translator, or null
the markup
StaticclaimA string claim of an ID Token, read without verifying it.
the compact JWT, or nothing
the claim
its value, or ''
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
StaticfromBytes of a base64url string.
the encoding
the bytes
StaticinsufficientThe scopes a 403's insufficient_scope challenge names (RFC 6750
section 3.1), or none for any other answer.
a fetch response
the scope values named
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 portal: the realm prefix before /portal.
a path
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
not already in the realm.
the page
the realm's path prefix, or '' for the default realm
the page with its links in the realm
StaticsessionWhether this browser lacks the sessionStorage a sign-in needs: there
is none, or a write to it throws.
the browser's objects; env.sessionStorage is asked
true when a sign-in could not keep its record
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
StaticstorageThe window's sessionStorage, or null where reading it throws (a
browser that blocks site data refuses the property itself).
the window
the storage, or null
StaticsubjectThe sub of an ID Token, read without verifying it.
the compact JWT, or nothing
the subject, or ''
StatictypedTurns a form's list and number fields into the types the operation takes, in place.
the form
its fields, as formFields() read them
nothing
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
StaticwebWhether this browser lacks what a sign-in needs from WebCrypto.
the browser's objects; env.crypto is asked
true when crypto, crypto.getRandomValues or any of
WEBCRYPTO_CALLS on crypto.subtle is missing
StaticwireWires every select[data-depends-on] in the document to its radios.
the document
nothing
The user portal's runtime: sign-in, routing and forms.