Auth_OpenID___HostSegmentRe
public
mixed
Auth_OpenID___HostSegmentRe
= "/^(?:[-a-zA-Z0-9!\$&'\\(\\)\\*+,;=._~]|%[a-zA-Z0-9]{2})*\$/"
public
mixed
Auth_OpenID___HostSegmentRe
= "/^(?:[-a-zA-Z0-9!\$&'\\(\\)\\*+,;=._~]|%[a-zA-Z0-9]{2})*\$/"
A regular expression that matches a domain ending in a top-level domains.
public
mixed
Auth_OpenID___TLDs
= '/\\.(ac|ad|ae|aero|af|ag|ai|al|am|an|ao|aq|ar|arpa|as|asia' . '|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|biz|bj|bm|bn|bo|br' . '|bs|bt|bv|bw|by|bz|ca|cat|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co' . '|com|coop|cr|cu|cv|cx|cy|cz|de|dj|dk|dm|do|dz|ec|edu|ee|eg' . '|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl' . '|gm|gn|gov|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie' . '|il|im|in|info|int|io|iq|ir|is|it|je|jm|jo|jobs|jp|ke|kg|kh' . '|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly' . '|ma|mc|md|me|mg|mh|mil|mk|ml|mm|mn|mo|mobi|mp|mq|mr|ms|mt' . '|mu|museum|mv|mw|mx|my|mz|na|name|nc|ne|net|nf|ng|ni|nl|no' . '|np|nr|nu|nz|om|org|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|pro|ps|pt' . '|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl' . '|sm|sn|so|sr|st|su|sv|sy|sz|tc|td|tel|tf|tg|th|tj|tk|tl|tm' . '|tn|to|tp|tr|travel|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve' . '|vg|vi|vn|vu|wf|ws|xn--0zwm56d|xn--11b5bs3a9aj6g' . '|xn--80akhbyknj4f|xn--9t4b11yi5a|xn--deba0ad|xn--g6w251d' . '|xn--hgbk6aj7f53bba|xn--hlcj6aya9esc7a|xn--jxalpdlp' . '|xn--kgbechtv|xn--zckzah|ye|yt|yu|za|zm|zw)\\.?$/'
Used in checking trust roots for sanity.
public
mixed
Auth_OpenID_AX_MINIMUM_SUPPORTED_ALIAS_LENGTH
= 32
public
mixed
Auth_OpenID_AX_NS_URI
= 'http://openid.net/srv/ax/1.0'
public
mixed
Auth_OpenID_AX_UNLIMITED_VALUES
= 'unlimited'
public
mixed
Auth_OpenID_BARE_NS
= 'Bare namespace'
Status to indicate cancellation of OpenID authentication.
public
mixed
Auth_OpenID_CANCEL
= 'cancel'
public
mixed
Auth_OpenID_digits
= "0123456789"
Status code returned when there were no OpenID arguments passed. This code indicates that the caller should return a 200 OK response and display an HTML page that says that this is an OpenID server endpoint.
public
mixed
Auth_OpenID_DO_ABOUT
= 'do_about'
Status code returned when the caller needs to authenticate the user. The associated value is a {@link Auth_OpenID_ServerRequest} object that can be used to complete the authentication. If the user has taken some authentication action, use the retry() method of the {@link Auth_OpenID_ServerRequest} object to complete the request.
public
mixed
Auth_OpenID_DO_AUTH
= 'do_auth'
public
mixed
Auth_OpenID_ENCODE_HTML_FORM
= 'HTML form'
public
mixed
Auth_OpenID_ENCODE_KVFORM
= 'kfvorm'
public
mixed
Auth_OpenID_ENCODE_URL
= 'URL/redirect'
This is the status code completeAuth returns when the value it received indicated an invalid login.
public
mixed
Auth_OpenID_FAILURE
= 'failure'
public
mixed
Auth_OpenID_FETCHER_MAX_RESPONSE_KB
= 1024
public
mixed
Auth_OpenID_HMACSHA256_SUPPORTED
= \false
public
mixed
AUTH_OPENID_HTTP_ERROR
= 400
public
mixed
AUTH_OPENID_HTTP_OK
= 200
public
mixed
AUTH_OPENID_HTTP_REDIRECT
= 302
public
mixed
Auth_OpenID_IDENTIFIER_SELECT
= "http://specs.openid.net/auth/2.0/identifier_select"
Defines for regexes and format checking.
public
mixed
Auth_OpenID_letters
= "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
Status code returned by the server when the only option is to show an error page, since we do not have enough information to redirect back to the consumer. The associated value is an error message that should be displayed on an HTML error page.
public
mixed
Auth_OpenID_LOCAL_ERROR
= 'local_error'
public
mixed
Auth_OpenID_NO_DEFAULT
= 'NO DEFAULT ALLOWED'
public
mixed
Auth_OpenID_NO_MATH_SUPPORT
= true
This is the characters that the nonces are made from.
public
mixed
Auth_OpenID_Nonce_CHRS
= "abcdefghijklmnopqrstuvwxyz" . "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
public
mixed
Auth_OpenID_Nonce_REGEX
= '/(\\d{4})-(\\d\\d)-(\\d\\d)T(\\d\\d):(\\d\\d):(\\d\\d)Z(.*)/'
public
mixed
Auth_OpenID_Nonce_TIME_FMT
= '%Y-%m-%dT%H:%M:%SZ'
public
mixed
Auth_OpenID_NULL_NAMESPACE
= 'Null namespace'
public
mixed
Auth_OpenID_OPENID1_NS
= 'http://openid.net/signon/1.0'
public
mixed
Auth_OpenID_OPENID1_URL_LIMIT
= 2047
public
mixed
Auth_OpenID_OPENID2_NS
= 'http://specs.openid.net/auth/2.0'
public
mixed
Auth_OpenID_OPENID_NS
= 'OpenID namespace'
public
mixed
Auth_OpenID_PAPE_NS_URI
= "http://specs.openid.net/extensions/pape/1.0"
This is the status code beginAuth returns when the page fetched from the entered OpenID URL doesn't contain the necessary link tags to function as an identity page.
public
mixed
Auth_OpenID_PARSE_ERROR
= 'parse error'
public
mixed
Auth_OpenID_punct
= "!\"#\$%&'()*+,-./:;<=>?@[\\]^_`{|}~"
The filename for a source of random bytes. Define this yourself if you have a different source of randomness.
public
mixed
Auth_OpenID_RAND_SOURCE
= '/dev/urandom'
Status code returned when there is a redirect back to the consumer. The value is the URL to redirect back to. The caller should return a 302 Found redirect with a Location: header containing the URL.
public
mixed
Auth_OpenID_REDIRECT
= 'redirect'
Status code returned when there is an error to return in key-value form to the consumer. The caller should return a 400 Bad Request response with content-type text/plain and the value as the body.
public
mixed
Auth_OpenID_REMOTE_ERROR
= 'remote_error'
Status code returned when there is a key-value form OK response to the consumer. The value associated with this code is the response. The caller should return a 200 OK response with content-type text/plain and the value as the body.
public
mixed
Auth_OpenID_REMOTE_OK
= 'remote_ok'
public
mixed
Auth_OpenID_RP_RETURN_TO_URL_TYPE
= 'http://specs.openid.net/auth/2.0/return_to'
This is the status code completeAuth returns when the {@link Auth_OpenID_Consumer} instance is in immediate mode, and the identity server sends back a URL to send the user to to complete his or her login.
public
mixed
Auth_OpenID_SETUP_NEEDED
= 'setup needed'
SHA1_BLOCKSIZE is this module's SHA1 blocksize used by the fallback implementation.
public
mixed
Auth_OpenID_SHA1_BLOCKSIZE
= 64
public
mixed
Auth_OpenID_SHA256_SUPPORTED
= \false
public
mixed
Auth_OpenID_SREG_NS_URI
= \Auth_OpenID_SREG_NS_URI_1_1
public
mixed
Auth_OpenID_SREG_NS_URI_1_0
= 'http://openid.net/sreg/1.0'
public
mixed
Auth_OpenID_SREG_NS_URI_1_1
= 'http://openid.net/extensions/sreg/1.1'
public
mixed
Auth_OpenID_SREG_URI
= 'http://openid.net/sreg/1.0'
This is the status code returned when the complete method returns successfully.
public
mixed
Auth_OpenID_SUCCESS
= 'success'
public
mixed
Auth_OpenID_THE_OTHER_OPENID1_NS
= 'http://openid.net/signon/1.1'
public
mixed
Auth_OpenID_TYPE_1_0
= 'http://openid.net/signon/1.0'
public
mixed
Auth_OpenID_TYPE_1_1
= 'http://openid.net/signon/1.1'
public
mixed
Auth_OpenID_TYPE_1_2
= 'http://openid.net/signon/1.2'
public
mixed
Auth_OpenID_TYPE_2_0
= 'http://specs.openid.net/auth/2.0/signon'
public
mixed
Auth_OpenID_TYPE_2_0_IDP
= 'http://specs.openid.net/auth/2.0/server'
public
mixed
Auth_OpenID_USER_AGENT
= 'php-openid/' . \Auth_OpenID_VERSION . ' (php/' . \phpversion() . ')'
The library version string
public
mixed
Auth_OpenID_VERSION
= '3.0.3'
public
mixed
Auth_OpenID_XMLNS_1_0
= 'http://openid.net/xmlns/1.0'
XRDS (yadis) content type
public
mixed
Auth_Yadis_CONTENT_TYPE
= 'application/xrds+xml'
Yadis header
public
mixed
Auth_Yadis_HEADER_NAME
= 'X-XRDS-Location'
XRD XML namespace
public
mixed
Auth_Yadis_XMLNS_XRD_2_0
= 'xri://$xrd*($v*2.0)'
XRDS XML namespace
public
mixed
Auth_Yadis_XMLNS_XRDS
= 'xri://$xrds'
public
mixed
PAPE_AUTH_MULTI_FACTOR
= 'http://schemas.openid.net/pape/policies/2007/06/multi-factor'
public
mixed
PAPE_AUTH_MULTI_FACTOR_PHYSICAL
= 'http://schemas.openid.net/pape/policies/2007/06/multi-factor-physical'
public
mixed
PAPE_AUTH_PHISHING_RESISTANT
= 'http://schemas.openid.net/pape/policies/2007/06/phishing-resistant'
public
mixed
PAPE_TIME_VALIDATOR
= '/^[0-9]{4,4}-[0-9][0-9]-[0-9][0-9]T[0-9][0-9]:[0-9][0-9]:[0-9][0-9]Z$/'
This match mode means a given service must match ALL filters passed to the Auth_Yadis_XRDS::services() call.
public
mixed
SERVICES_YADIS_MATCH_ALL
= 101
This match mode means a given service must match ANY filters (at least one) passed to the Auth_Yadis_XRDS::services() call.
public
mixed
SERVICES_YADIS_MATCH_ANY
= 102
The priority value used for service elements with no priority specified.
public
mixed
SERVICES_YADIS_MAX_PRIORITY
= \pow(2, 30)
Auth_OpenID_getSecretSize(mixed $assoc_type) : mixed
Auth_OpenID_getAllAssociationTypes() : mixed
Auth_OpenID_getSupportedAssociationTypes() : mixed
Auth_OpenID_getSessionTypes(string $assoc_type) : mixed
Auth_OpenID_checkSessionType(mixed $assoc_type, mixed $session_type) : mixed
Auth_OpenID_getDefaultAssociationOrder() : mixed
Auth_OpenID_getOnlyEncryptedOrder() : mixed
Auth_OpenID_getDefaultNegotiator() : mixed
Auth_OpenID_getEncryptedNegotiator() : mixed
Check an alias for invalid characters; raise AXError if any are found. Return None if the alias is valid.
Auth_OpenID_AX_checkAlias(string $alias) : Auth_OpenID_AX_Error|bool
Given a namespace mapping and a string containing a comma-separated list of namespace aliases, return a list of type URIs that correspond to those aliases.
Auth_OpenID_AX_toTypeURIs(Auth_OpenID_NamespaceMap $namespace_map, string $alias_list_s) : array<string|int, string>|Auth_OpenID_AX_Error
The mapping from namespace URI to alias
The string containing the comma-separated list of aliases. May also be None for convenience.
The list of namespace URIs that corresponds to the supplied list of aliases. If the string was zero-length or None, an empty list will be returned.
return null If an alias is present in the list of aliases but is not present in the namespace map.
Define the supported extensions. An extension array has keys 'modules', 'extension', and 'class'. 'modules' is an array of PHP module names which the loading code will attempt to load. These values will be suffixed with a library file extension (e.g. ".so").
Auth_OpenID_math_extensions() : mixed
'extension' is the name of a PHP extension which will be tested before 'modules' are loaded. 'class' is the string name of a subclass which should be instantiated if a given extension is present.
You can define new math library implementations and add them to this array.
Detect which (if any) math library is available
Auth_OpenID_detectMathLibrary(array<string|int, mixed> $exts) : bool
{@link Auth_OpenID_getMathLib} checks for the presence of long number extension modules and returns an instance of {@link Auth_OpenID_MathWrapper} which exposes the module's functionality.
Auth_OpenID_getMathLib() : Auth_OpenID_MathLibrary|null
Checks for the existence of an extension module described by the result of and returns an instance of a wrapper for that extension module. If no extension module is found, an instance of is returned, which wraps the native PHP integer implementation. The proper calling convention for this method is $lib = Auth_OpenID_getMathLib().
This function checks for the existence of specific long number implementations in the following order: GMP followed by BCmath.
Auth_OpenID_setNoMathSupport() : mixed
Auth_OpenID_noMathSupport() : mixed
Returns available session types.
Auth_OpenID_getAvailableSessionTypes() : mixed
Auth_OpenID_getDefaultMod() : mixed
Auth_OpenID_getDefaultGen() : mixed
Auth_OpenID_getOpenIDTypeURIs() : mixed
Auth_OpenID_getOpenIDConsumerTypeURIs() : mixed
Auth_OpenID_getOpenIDTypeName(mixed $type_uri) : mixed
Auth_OpenID_findOPLocalIdentifier(Auth_Yadis_Service $service, array<string|int, mixed> $type_uris) : bool|null
filter_MatchesAnyOpenIDType(Auth_Yadis_Service $service) : bool
filter_MatchesAnyOpenIDConsumerType(Auth_Yadis_Service &$service) : bool
Auth_OpenID_bestMatchingService(mixed $service, mixed $preferred_types) : mixed
Auth_OpenID_arrangeByType(mixed $service_list, mixed $preferred_types) : mixed
Auth_OpenID_getOPOrUserServices(mixed $openid_services) : mixed
Auth_OpenID_makeOpenIDEndpoints(string $uri, array<string|int, Auth_Yadis_Service> $yadis_services) : array<string|int, mixed>
Auth_OpenID_discoverWithYadis(mixed $uri, mixed $fetcher[, mixed $endpoint_filter = 'Auth_OpenID_getOPOrUserServices' ][, mixed $discover_function = null ]) : mixed
Auth_OpenID_discoverURI(mixed $uri, mixed $fetcher) : mixed
Auth_OpenID_discoverWithoutYadis(string $uri, Auth_Yadis_PlainHTTPFetcher $fetcher) : array<string|int, mixed>
Auth_OpenID_discoverXRI(mixed $iname, mixed $fetcher) : mixed
Auth_OpenID_discover(string $uri, Auth_Yadis_PlainHTTPFetcher $fetcher) : array<string|int, mixed>
Auth_OpenID_SHA1(mixed $text) : mixed
Compute an HMAC/SHA1 hash.
Auth_OpenID_HMACSHA1(string $key, string $text) : string
The HMAC key
The message text to hash
$mac The MAC
Auth_OpenID_SHA256(mixed $text) : mixed
Auth_OpenID_HMACSHA256(mixed $key, mixed $text) : mixed
Auth_OpenID_isOpenID1(mixed $ns) : mixed
Registers a (namespace URI, alias) mapping in a global namespace alias map. Raises NamespaceAliasRegistrationError if either the namespace URI or alias has already been registered with a different value. This function is required if you want to use a namespace with an OpenID 1 message.
Auth_OpenID_registerNamespaceAlias(string $namespace_uri, string $alias) : bool
Removes a (namespace_uri, alias) registration from the global namespace alias map. Returns true if the removal succeeded; false if not (if the mapping did not exist).
Auth_OpenID_removeNamespaceAlias(string $namespace_uri, string $alias) : bool
Auth_OpenID_splitNonce(mixed $nonce_string) : mixed
Auth_OpenID_checkTimestamp(mixed $nonce_string[, mixed $allowed_skew = null ][, mixed $now = null ]) : mixed
Auth_OpenID_mkNonce([mixed $when = null ]) : mixed
Auth_OpenID_legacy_discover(mixed $html_text, mixed $server_rel, mixed $delegate_rel) : mixed
Auth_OpenID_isError(object|string $obj[, string $cls = 'Auth_OpenID_ServerError' ]) : bool
Check to see that the given value is a valid simple registration data field name. Return true if so, false if not.
Auth_OpenID_checkFieldName(string $field_name) : bool
Does the given endpoint advertise support for simple registration?
Auth_OpenID_supportsSReg(Auth_OpenID_ServiceEndpoint $endpoint) : bool
The endpoint object as returned by OpenID discovery. returns whether an sreg type was advertised by the endpoint
If the endpoint is a relying party OpenID return_to endpoint, return the endpoint URL. Otherwise, return None.
filter_extractReturnURL(Auth_OpenID_ServiceEndpoint $endpoint) : Auth_OpenID_ServiceEndpoint|null
This function is intended to be used as a filter for the Yadis filtering interface.
An XRDS BasicServiceEndpoint, as returned by performing Yadis dicovery.
The endpoint URL or None if the endpoint is not a relying party endpoint.
& Auth_OpenID_extractReturnURL(mixed &$endpoint_list) : mixed
Auth_OpenID_returnToMatches(mixed $allowed_return_to_urls, mixed $return_to) : mixed
Auth_OpenID_getAllowedReturnURLs(mixed $relying_party_url, mixed $fetcher[, mixed $discover_function = null ]) : mixed
Auth_OpenID_verifyReturnTo(mixed $realm_str, mixed $return_to, mixed $fetcher[, mixed $_vrfy = 'Auth_OpenID_getAllowedReturnURLs' ]) : mixed
Auth_OpenID_getURIPattern() : mixed
Auth_OpenID_getAuthorityPattern() : mixed
Auth_OpenID_getEncodedPattern() : mixed
Auth_OpenID_getURLIllegalCharRE() : mixed
Auth_OpenID_getUnreserved() : mixed
Auth_OpenID_getEscapeRE() : mixed
Auth_OpenID_pct_encoded_replace_unreserved(mixed $mo) : mixed
Auth_OpenID_pct_encoded_replace(mixed $mo) : mixed
Auth_OpenID_remove_dot_segments(mixed $path) : mixed
Auth_OpenID_urinorm(mixed $uri) : mixed
Auth_OpenID_include_init() : mixed
Miscellaneous utility values and functions for OpenID and Yadis.
Auth_Yadis_getUCSChars() : mixed
Auth_Yadis_getIPrivateChars() : mixed
Auth_Yadis_pct_escape_unicode(mixed $char_match) : mixed
Auth_Yadis_startswith(mixed $s, mixed $stuff) : mixed
Set a default parser to override the extension-driven selection of available parser classes. This is helpful in a test environment or one in which multiple parsers can be used but one is more desirable.
Auth_Yadis_setDefaultParser(Auth_Yadis_XMLParser $parser) : mixed
An instance of a Auth_Yadis_XMLParser subclass.
Auth_Yadis_getSupportedExtensions() : mixed
Returns an instance of a Auth_Yadis_XMLParser subclass based on the availability of PHP extensions for XML parsing. If Auth_Yadis_setDefaultParser has been called, the parser used in that call will be returned instead.
Auth_Yadis_getXMLParser() : Auth_Yadis_XMLParser|bool
Auth_Yadis_getNSMap() : mixed
Auth_Yadis_array_scramble(array<string|int, mixed> $arr) : array<string|int, mixed>
Auth_Yadis_getXRDExpiration(mixed $xrd_element[, mixed $default = null ]) : mixed
Auth_Yadis_getDefaultProxy() : mixed
Auth_Yadis_getXRIAuthorities() : mixed
Auth_Yadis_getEscapeRE() : mixed
Auth_Yadis_getXrefRE() : mixed
Auth_Yadis_identifierScheme(mixed $identifier) : mixed
Auth_Yadis_toIRINormal(mixed $xri) : mixed
_escape_xref(mixed $xref_match) : mixed
Auth_Yadis_escapeForIRI(mixed $xri) : mixed
Auth_Yadis_toURINormal(mixed $xri) : mixed
Auth_Yadis_iriToURI(mixed $iri) : mixed
Auth_Yadis_XRIAppendArgs(mixed $url, mixed $args) : mixed
Auth_Yadis_providerIsAuthoritative(mixed $providerID, mixed $canonicalID) : mixed
Auth_Yadis_rootAuthority(mixed $xri) : mixed
Auth_Yadis_XRI(mixed $xri) : mixed
Auth_Yadis_getCanonicalID(string $iname, Auth_Yadis_XRDS $xrds) : bool|string
Perform the Yadis protocol on the input URL and return an iterable of resulting endpoint objects.
Auth_Yadis_getServiceEndpoints(string $input_url, $xrds_parse_func[, null $discover_func = null ][, null $fetcher = null ]) : string
input_url: The URL on which to perform the Yadis protocol
The normalized identity URL and an iterable of endpoint objects generated by the filter function.
xrds_parse_func: a callback which will take (uri, xrds_text) and return an array of service endpoint objects or null. Usually array('Auth_OpenID_ServiceEndpoint', 'fromXRDS').
discover_func: if not null, a callback which should take (uri) and return an Auth_Yadis_Yadis object or null.