OpenID
Base OpenID class. Contains common constants and helper static methods, as well as the directRequest() method, which handles direct communications. It also is a common place to assign your custom Storage class and Observers.
Located in /OpenID.php (line 40)
| Class | Description |
|---|---|
| OpenID_Assertion | Class for verifying assertions. Does basic validation (nonce, return_to, etc), as well as signature verification and check_authentication. |
| OpenID_Association_Request | OpenID_Association_Request |
| OpenID_RelyingParty | OpenID_RelyingParty |
Stores the last event
Array of attached observers
Instance of OpenID_Store_Interface
A map of which service types (versions) map to which protocol version. 1.0 is mapped to 1.1. This is mostly helpful to see if openid.ns is supported.
Attaches an observer
Detaches the observer
Gets the OpenID_Store_Interface instance. If none has been set, then the default store is used (CacheLite).
Returns an array of the 5 XRI globals symbols
Normalizes an identifier (URI or XRI)
Sets the last event and notifies the observers
Sets a custom OpenID_Store_Interface object
Sends a direct HTTP request.
Instantiates HTTP_Request2. Abstracted for testing.
ASSOC_TYPE_HMAC_SHA1
= 'HMAC-SHA1'
(line 93)
ASSOC_TYPE_HMAC_SHA256
= 'HMAC-SHA256'
(line 94)
HASH_ALGORITHM_1_1
= 'SHA1'
(line 72)
HASH_ALGORITHM_2_0
= 'SHA256'
(line 71)
Supported Association Hash Algorithms (preferred)
MODE_ASSOCIATE
= 'associate'
(line 77)
OpenID Modes
MODE_CANCEL
= 'cancel'
(line 82)
MODE_CHECKID_IMMEDIATE
= 'checkid_immediate'
(line 79)
MODE_CHECKID_SETUP
= 'checkid_setup'
(line 78)
MODE_CHECK_AUTHENTICATION
= 'check_authentication'
(line 80)
MODE_ERROR
= 'error'
(line 84)
MODE_ID_RES
= 'id_res'
(line 81)
MODE_SETUP_NEEDED
= 'setup_needed'
(line 83)
NS_1_1
= 'http://openid.net/signon/1.1'
(line 46)
NS_2_0
= 'http://specs.openid.net/auth/2.0'
(line 45)
OP identifier constants
NS_2_0_ID_SELECT
= 'http://specs.openid.net/auth/2.0/identifier_select'
(line 48)
SERVICE_1_0_SIGNON
= 'http://openid.net/signon/1.0'
(line 53)
SERVICE_1_1_SIGNON
= 'http://openid.net/signon/1.1'
(line 52)
SERVICE_2_0_SERVER
= 'http://specs.openid.net/auth/2.0/server'
(line 50)
SERVICE_2_0_SIGNON
= 'http://specs.openid.net/auth/2.0/signon'
(line 51)
SESSION_TYPE_DH_SHA1
= 'DH-SHA1'
(line 90)
SESSION_TYPE_DH_SHA256
= 'DH-SHA256'
(line 91)
SESSION_TYPE_NO_ENCRYPTION
= 'no-encryption'
(line 89)
Documentation generated on Tue, 15 Dec 2009 19:00:56 -0800 by phpDocumentor 1.4.3