category
open_id_helpers
Internal shared helpers for the open_id library.
logtalk_load(open_id(loader))staticPublic predicates
(no local declarations; see entity ancestors if any)
Protected predicates
json_member/3
Enumerates JSON object member values for a given key.
staticjson_member(Key,Object,Value)json_member(+atom,+term,-term) - zero_or_morejson_member_default/4
Returns a JSON object member value or a default when the key is absent.
staticjson_member_default(Key,Object,Default,Value)json_member_default(+atom,+term,+term,-term) - oneprovider_property/3
Looks up a property in a provider metadata compound term.
staticprovider_property(Provider,Name,Value)provider_property(+compound,+atom,-term) - zero_or_oneprovider_property_default/4
Returns a provider metadata property or a default when the property is absent.
staticprovider_property_default(Provider,Name,Default,Value)provider_property_default(+compound,+atom,+term,-term) - onenormalize_options_term/2
Normalizes either a direct options list or a named options wrapper term.
staticnormalize_options_term(NameOptions,Options)normalize_options_term(+term,-list(compound)) - onequery_atom/2
Encodes query parameters as a URL query atom.
staticquery_atom(Pairs,Query)query_atom(+list(pair),-atom) - one_or_errorinstantiation_errordomain_error(http_sink,Sink)Pairs cannot be represented as an HTTP form body:domain_error(http_body,Body)domain_error(http_body_options,Options)space_atom/2
Converts an atom or list of atoms into a space-separated atom.
staticspace_atom(Value,Atom)space_atom(+term,-atom) - one_or_errorValue is neither an atom nor a list of atoms:domain_error(open_id_space_separated_atom,Value)url_scheme/2
Extracts the scheme from an absolute URL atom.
staticurl_scheme(URL,Scheme)url_scheme(+atom,-atom) - zero_or_onehttps_url/1
Succeeds when the URL uses the https scheme.
statichttps_url(URL)https_url(+atom) - zero_or_onelocalhost_http_url/1
Succeeds when the URL uses http for a localhost or loopback host.
staticlocalhost_http_url(URL)localhost_http_url(+atom) - zero_or_oneensure_absolute_url/2
Validates that a value is an absolute URL for the given domain label.
staticensure_absolute_url(Domain,URL)ensure_absolute_url(+atom,+atom) - one_or_errorURL is a variable:instantiation_errorURL is not an absolute URL atom:domain_error(Domain,URL)ensure_secure_url/3
Validates that a URL uses https or an allowed localhost exception.
staticensure_secure_url(Domain,URL,Options)ensure_secure_url(+atom,+atom,+list(compound)) - one_or_errorURL is a variable:instantiation_errorURL is not an absolute URL atom:domain_error(Domain,URL)URL is not secure and is not an allowed localhost HTTP URL:domain_error(Domain,URL)atom_bytes/2
Converts between an atom and its byte list representation.
staticatom_bytes(Atom,Bytes)atom_bytes(+atom,-list(byte)) - oneatom_bytes(-atom,+list(byte)) - onebytes_atom/2
Converts a byte list into an atom.
staticbytes_atom(Bytes,Atom)bytes_atom(+list(byte),-atom) - onebase64url_atom_bytes/2
Converts between unpadded Base64URL atoms and byte lists.
staticbase64url_atom_bytes(Atom,Bytes)base64url_atom_bytes(+atom,-list(byte)) - one_or_errorbase64url_atom_bytes(-atom,+list(byte)) - one_or_errorAtom is a variable or the sink is a variable:instantiation_errorAtom is neither a variable nor a valid Base64URL source term:domain_error(base64url_source,codes(Codes))Bytes cannot be encoded in the requested Base64URL sink representation:domain_error(base64url_sink,codes(Codes))Atom contains Base64URL data with characters outside the Base64URL alphabet:representation_error(base64)json_object_pairs/2
Extracts the key-value pairs from a JSON object term.
staticjson_object_pairs(Object,Pairs)json_object_pairs(+term,-list(compound)) - zero_or_onepair_key_value/3
Extracts the key and value from a JSON pair compound term.
staticpair_key_value(Pair,Key,Value)pair_key_value(+compound,-term,-term) - oneappend_query/3
Appends a query atom to an endpoint URL, preserving any existing query.
staticappend_query(Endpoint,Query,URL)append_query(+atom,+atom,-atom) - onePrivate predicates
(no local declarations; see entity ancestors if any)
Operators
(none)