Skip to main content

Module shown_url

Module shown_url 

Source
Expand description

How a page address is shown to an agent (in an action’s answer, a wait, a snapshot header, the action log).

A sign-in redirect carries one-time values in its query or fragment: the request’s state and nonce, the authorization code and its code challenge, or a token. An agent that reads the whole address has them in its context, its transcript and anything it quotes. So an address whose query or fragment carries one of those keys is shown as its scheme, host and path, with the query shown as ?... and the fragment as #.... Any other address keeps its query and fragment: a search (?q=) or a record (?id=) is what the agent needs to read. A user name and password in the authority are never shown.

Functions§

shown_url
url as an agent may read it. Every place a tool prints a page address goes through this.