Skip to main content

Module client_id

Module client_id 

Source
Expand description

An OAuth client’s identifier, in the one spelling a policy matches.

Structs§

ClientId
An OAuth client_id, known to be in canonical form.

Enums§

ClientIdError
Why a string is not a ClientId.

Constants§

LOCAL 🔒
How every local client_id is spelled, up to its query.
LOCAL_REDIRECT_URIS 🔒
The redirect URIs a local client has when its client_id names none.
LOCAL_SCOPE 🔒
The scope a local client has when its client_id names none.

Functions§

is_local_form 🔒
Whether url is the profile’s local form: http, host localhost, no port and an empty path. Any other http://localhost URL is an ordinary client_id naming a document to fetch.
is_local_origin
Whether origin is the origin of the profile’s local form, http://localhost. A client the server shows with this origin built its own metadata from its client_id, so any process on its machine can send the same one. A client fetched from http://localhost/… on a development deployment has this origin too.
local 🔒
The canonical spelling of the local client_id raw, which parsed as url.
portless 🔒
redirect_uri with any port removed, since the profile matches a local client’s redirect URIs without one. None if it is not a URL with a host.