openid.inc

OpenID utility functions.

File

modules/openid/openid.inc

Functions

Name Description
openid_extract_ax_values Extracts values from an OpenID AX Response.
openid_extract_namespace Extract all the parameters belonging to an extension in a response message.
openid_normalize Normalize the given identifier.
openid_redirect Creates a js auto-submit redirect for (for the 2.x protocol)
openid_redirect_form
openid_redirect_http Performs an HTTP 302 redirect (for the 1.x protocol).
_openid_create_message Create a serialized message packet as per spec: $key:$value\n .
_openid_dh_base64_to_long
_openid_dh_binary_to_long
_openid_dh_long_to_base64
_openid_dh_long_to_binary
_openid_dh_rand
_openid_dh_xorsecret
_openid_encode_message Encode a message from _openid_create_message for HTTP Post
_openid_get_bytes
_openid_get_math_library Determine the available math library GMP vs. BCMath, favouring GMP for performance.
_openid_get_params
_openid_hmac
_openid_invalid_openid_transition Provides transition for accounts with possibly invalid OpenID identifiers in authmap.
_openid_is_xri Determine if the given identifier is an XRI ID.
_openid_link_href Pull the href attribute out of an html link element.
_openid_math_add Calls the add function from the available math library for OpenID.
_openid_math_cmp Calls the cmp function from the available math library for OpenID.
_openid_math_div Calls the div function from the available math library for OpenID.
_openid_math_mod Calls the mod function from the available math library for OpenID.
_openid_math_mul Calls the mul function from the available math library for OpenID.
_openid_math_pow Calls the pow function from the available math library for OpenID.
_openid_math_powmod Calls the mul function from the available math library for OpenID.
_openid_meta_httpequiv Pull the http-equiv attribute out of an html meta element
_openid_nonce Return a nonce value - formatted per OpenID spec.
_openid_parse_message Convert a direct communication message into an associative array.
_openid_response
_openid_select_service Select a service element.
_openid_signature Sign certain keys in a message
_openid_url_normalize OpenID normalization method: normalize URL identifiers.
_openid_xrds_parse Parse an XRDS document.
_openid_xri_normalize OpenID normalization method: normalize XRI identifiers.

Constants

Name Description
OPENID_DH_DEFAULT_GEN Diffie-Hellman generator; used for Diffie-Hellman key exchange computations.
OPENID_DH_DEFAULT_MOD Diffie-Hellman Key Exchange Default Value.
OPENID_NS_1_0 OpenID Authentication 1.0 namespace URL; used for backwards-compatibility.
OPENID_NS_1_1 OpenID Authentication 1.1 namespace URL; used for backwards-compatibility.
OPENID_NS_2_0 OpenID Authentication 2.0 namespace URL.
OPENID_NS_AX OpenID Attribute Exchange extension.
OPENID_NS_OPENID OpenID namespace used in Yadis documents.
OPENID_NS_SREG OpenID Simple Registration extension.
OPENID_NS_XRD Extensible Resource Descriptor documents.
OPENID_RAND_SOURCE Random number generator; used for Diffie-Hellman key exchange computations.
OPENID_SHA1_BLOCKSIZE SHA-1 hash block size; used for Diffie-Hellman key exchange computations.

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!openid!openid.inc/7.x