|
ILIAS
release_4-4 Revision
|
Collaboration diagram for Auth_OpenID_GenericConsumer:Public Member Functions | |
| Auth_OpenID_GenericConsumer ($store) | |
| This method initializes a new Auth_OpenID_Consumer instance to access the library. More... | |
| begin ($service_endpoint) | |
| Called to begin OpenID authentication using the specified Auth_OpenID_ServiceEndpoint. More... | |
| complete ($message, $endpoint, $return_to) | |
| Given an Auth_OpenID_Message, Auth_OpenID_ServiceEndpoint and optional return_to URL, complete OpenID authentication. More... | |
| _completeInvalid ($message, $endpoint, $unused) | |
| private More... | |
| _complete_cancel ($message, $endpoint, $unused) | |
| private More... | |
| _complete_error ($message, $endpoint, $unused) | |
| private More... | |
| _complete_setup_needed ($message, $endpoint, $unused) | |
| private More... | |
| _complete_id_res ($message, $endpoint, $return_to) | |
| private More... | |
| _checkSetupNeeded ($message) | |
| private More... | |
| _doIdRes ($message, $endpoint, $return_to) | |
| private More... | |
| _checkReturnTo ($message, $return_to) | |
| private More... | |
| _verifyReturnToArgs ($query) | |
| private More... | |
| _idResCheckSignature ($message, $server_url) | |
| private More... | |
| _verifyDiscoveryResults ($message, $endpoint=null) | |
| private More... | |
| _verifyDiscoveryResultsOpenID1 ($message, $endpoint) | |
| private More... | |
| _verifyDiscoverySingle ($endpoint, $to_match) | |
| private More... | |
| _verifyDiscoveryResultsOpenID2 ($message, $endpoint) | |
| private More... | |
| _discoverAndVerify ($claimed_id, $to_match_endpoints) | |
| private More... | |
| _verifyDiscoveryServices ($claimed_id, $services, $to_match_endpoints) | |
| private More... | |
| _idResGetNonceOpenID1 ($message, $endpoint) | |
| Extract the nonce from an OpenID 1 response. More... | |
| _idResCheckNonce ($message, $endpoint) | |
| private More... | |
| _idResCheckForFields ($message) | |
| private More... | |
| _checkAuth ($message, $server_url) | |
| private More... | |
| _createCheckAuthRequest ($message) | |
| private More... | |
| _processCheckAuthResponse ($response, $server_url) | |
| private More... | |
| _makeKVPost ($message, $server_url) | |
| private More... | |
| _getAssociation ($endpoint) | |
| private More... | |
| _extractSupportedAssociationType ($server_error, $endpoint, $assoc_type) | |
| Handle ServerErrors resulting from association requests. More... | |
| _negotiateAssociation ($endpoint) | |
| private More... | |
| _requestAssociation ($endpoint, $assoc_type, $session_type) | |
| private More... | |
| _extractAssociation ($assoc_response, $assoc_session) | |
| private More... | |
| _createAssociateRequest ($endpoint, $assoc_type, $session_type) | |
| private More... | |
| _getOpenID1SessionType ($assoc_response) | |
| Given an association response message, extract the OpenID 1.X session type. More... | |
Static Public Member Functions | |
| static | _httpResponseToMessage ($response, $server_url) |
| Adapt a POST response to a Message. More... | |
Data Fields | |
| $discoverMethod = 'Auth_OpenID_discover' | |
| private More... | |
| $store | |
| This consumer's store object. More... | |
| $_use_assocs | |
| private More... | |
| $openid1_nonce_query_arg_name = 'janrain_nonce' | |
| private More... | |
| $openid1_return_to_identifier_name = 'openid1_claimed_id' | |
| Another query parameter that gets added to the return_to for OpenID 1; if the user's session state is lost, use this claimed identifier to do discovery when verifying the response. More... | |
Definition at line 568 of file Consumer.php.
| Auth_OpenID_GenericConsumer::_checkAuth | ( | $message, | |
| $server_url | |||
| ) |
private
Definition at line 1334 of file Consumer.php.
| Auth_OpenID_GenericConsumer::_checkReturnTo | ( | $message, | |
| $return_to | |||
| ) |
private
Definition at line 813 of file Consumer.php.
References $result, _verifyReturnToArgs(), Auth_OpenID\arrayGet(), Auth_OpenID_OPENID_NS, Auth_OpenID_urinorm(), and Auth_OpenID\isFailure().
Here is the call graph for this function:| Auth_OpenID_GenericConsumer::_checkSetupNeeded | ( | $message | ) |
| Auth_OpenID_GenericConsumer::_complete_cancel | ( | $message, | |
| $endpoint, | |||
| $unused | |||
| ) |
| Auth_OpenID_GenericConsumer::_complete_error | ( | $message, | |
| $endpoint, | |||
| $unused | |||
| ) |
private
Definition at line 695 of file Consumer.php.
References Auth_OpenID_OPENID_NS.
| Auth_OpenID_GenericConsumer::_complete_id_res | ( | $message, | |
| $endpoint, | |||
| $return_to | |||
| ) |
private
Definition at line 722 of file Consumer.php.
References Auth_OpenID_OPENID1_NS.
| Auth_OpenID_GenericConsumer::_complete_setup_needed | ( | $message, | |
| $endpoint, | |||
| $unused | |||
| ) |
private
Definition at line 708 of file Consumer.php.
References Auth_OpenID_OPENID2_NS.
| Auth_OpenID_GenericConsumer::_completeInvalid | ( | $message, | |
| $endpoint, | |||
| $unused | |||
| ) |
private
Definition at line 675 of file Consumer.php.
References Auth_OpenID_OPENID_NS.
| Auth_OpenID_GenericConsumer::_createAssociateRequest | ( | $endpoint, | |
| $assoc_type, | |||
| $session_type | |||
| ) |
private
Definition at line 1661 of file Consumer.php.
References Auth_OpenID_OPENID2_NS, and Auth_OpenID_Message\fromOpenIDArgs().
Here is the call graph for this function:| Auth_OpenID_GenericConsumer::_createCheckAuthRequest | ( | $message | ) |
| Auth_OpenID_GenericConsumer::_discoverAndVerify | ( | $claimed_id, | |
| $to_match_endpoints | |||
| ) |
private
Definition at line 1179 of file Consumer.php.
| Auth_OpenID_GenericConsumer::_doIdRes | ( | $message, | |
| $endpoint, | |||
| $return_to | |||
| ) |
private
Definition at line 757 of file Consumer.php.
References $result, Auth_OpenID\addPrefix(), Auth_OpenID_NO_DEFAULT, Auth_OpenID_OPENID_NS, and Auth_OpenID\isFailure().
Here is the call graph for this function:| Auth_OpenID_GenericConsumer::_extractAssociation | ( | $assoc_response, | |
| $assoc_session | |||
| ) |
private
Definition at line 1569 of file Consumer.php.
References Auth_OpenID_NO_DEFAULT, Auth_OpenID_OPENID2_NS, Auth_OpenID_OPENID_NS, Auth_OpenID_Association\fromExpiresIn(), Auth_OpenID\intval(), and Auth_OpenID\isFailure().
Here is the call graph for this function:| Auth_OpenID_GenericConsumer::_extractSupportedAssociationType | ( | $server_error, | |
| $endpoint, | |||
| $assoc_type | |||
| ) |
Handle ServerErrors resulting from association requests.
private
Definition at line 1464 of file Consumer.php.
References Auth_OpenID_OPENID_NS.
| Auth_OpenID_GenericConsumer::_getAssociation | ( | $endpoint | ) |
private
Definition at line 1433 of file Consumer.php.
| Auth_OpenID_GenericConsumer::_getOpenID1SessionType | ( | $assoc_response | ) |
Given an association response message, extract the OpenID 1.X session type.
This function mostly takes care of the 'no-encryption' default behavior in OpenID 1.
If the association type is plain-text, this function will return 'no-encryption'
private
Definition at line 1708 of file Consumer.php.
References Auth_OpenID_OPENID1_NS.
|
static |
Adapt a POST response to a Message.
| $response | Result of a POST to an OpenID endpoint. |
private
Definition at line 1400 of file Consumer.php.
References Auth_OpenID_Message\fromKVForm(), and Auth_OpenID_ServerErrorContainer\fromMessage().
Here is the call graph for this function:| Auth_OpenID_GenericConsumer::_idResCheckForFields | ( | $message | ) |
private
Definition at line 1281 of file Consumer.php.
References Auth_OpenID_NO_DEFAULT, Auth_OpenID_OPENID1_NS, Auth_OpenID_OPENID2_NS, Auth_OpenID_OPENID_NS, and Auth_OpenID\isFailure().
Here is the call graph for this function:| Auth_OpenID_GenericConsumer::_idResCheckNonce | ( | $message, | |
| $endpoint | |||
| ) |
private
Definition at line 1243 of file Consumer.php.
References $timestamp, Auth_OpenID_OPENID2_NS, and Auth_OpenID_splitNonce().
Here is the call graph for this function:| Auth_OpenID_GenericConsumer::_idResCheckSignature | ( | $message, | |
| $server_url | |||
| ) |
private
Definition at line 937 of file Consumer.php.
References Auth_OpenID_OPENID_NS, and Auth_OpenID\isFailure().
Here is the call graph for this function:| Auth_OpenID_GenericConsumer::_idResGetNonceOpenID1 | ( | $message, | |
| $endpoint | |||
| ) |
Extract the nonce from an OpenID 1 response.
Return the nonce from the BARE_NS since we independently check the return_to arguments are the same as those in the response message.
See the openid1_nonce_query_arg_name class variable
private
Definition at line 1234 of file Consumer.php.
References Auth_OpenID_BARE_NS.
| Auth_OpenID_GenericConsumer::_makeKVPost | ( | $message, | |
| $server_url | |||
| ) |
private
Definition at line 1418 of file Consumer.php.
| Auth_OpenID_GenericConsumer::_negotiateAssociation | ( | $endpoint | ) |
private
Definition at line 1499 of file Consumer.php.
References Auth_OpenID\isFailure().
Here is the call graph for this function:| Auth_OpenID_GenericConsumer::_processCheckAuthResponse | ( | $response, | |
| $server_url | |||
| ) |
| Auth_OpenID_GenericConsumer::_requestAssociation | ( | $endpoint, | |
| $assoc_type, | |||
| $session_type | |||
| ) |
private
Definition at line 1548 of file Consumer.php.
| Auth_OpenID_GenericConsumer::_verifyDiscoveryResults | ( | $message, | |
$endpoint = null |
|||
| ) |
private
Definition at line 980 of file Consumer.php.
References Auth_OpenID_OPENID2_NS.
| Auth_OpenID_GenericConsumer::_verifyDiscoveryResultsOpenID1 | ( | $message, | |
| $endpoint | |||
| ) |
private
Definition at line 994 of file Consumer.php.
References $result, Auth_OpenID_BARE_NS, Auth_OpenID_OPENID1_NS, Auth_OpenID_TYPE_1_0, Auth_OpenID_TYPE_1_1, and Auth_OpenID\isFailure().
Here is the call graph for this function:| Auth_OpenID_GenericConsumer::_verifyDiscoveryResultsOpenID2 | ( | $message, | |
| $endpoint | |||
| ) |
private
Definition at line 1103 of file Consumer.php.
References $result, Auth_OpenID_OPENID2_NS, Auth_OpenID_TYPE_2_0, Auth_OpenID_ServiceEndpoint\fromOPEndpointURL(), and Auth_OpenID\isFailure().
Here is the call graph for this function:| Auth_OpenID_GenericConsumer::_verifyDiscoveryServices | ( | $claimed_id, | |
| $services, | |||
| $to_match_endpoints | |||
| ) |
private
Definition at line 1199 of file Consumer.php.
References $result, and Auth_OpenID\isFailure().
Here is the call graph for this function:| Auth_OpenID_GenericConsumer::_verifyDiscoverySingle | ( | $endpoint, | |
| $to_match | |||
| ) |
private
Definition at line 1051 of file Consumer.php.
References Auth_OpenID_OPENID1_NS, and Auth_OpenID\urldefrag().
Here is the call graph for this function:| Auth_OpenID_GenericConsumer::_verifyReturnToArgs | ( | $query | ) |
private
Definition at line 880 of file Consumer.php.
References $query, Auth_OpenID\arrayGet(), Auth_OpenID_BARE_NS, Auth_OpenID_OPENID_NS, Auth_OpenID_Message\fromPostArgs(), Auth_OpenID\isFailure(), and Auth_OpenID\parse_str().
Referenced by _checkReturnTo().
Here is the call graph for this function:
Here is the caller graph for this function:| Auth_OpenID_GenericConsumer::Auth_OpenID_GenericConsumer | ( | $store | ) |
This method initializes a new Auth_OpenID_Consumer instance to access the library.
| Auth_OpenID_OpenIDStore | $store | This must be an object that implements the interface in Auth_OpenID_OpenIDStore. Several concrete implementations are provided, to cover most common use cases. For stores backed by MySQL, PostgreSQL, or SQLite, see the Auth_OpenID_SQLStore class and its sublcasses. For a filesystem-backed store, see the Auth_OpenID_FileStore module. As a last resort, if it isn't possible for the server to store state at all, an instance of Auth_OpenID_DumbStore can be used. |
| bool | $immediate | This is an optional boolean value. It controls whether the library uses immediate mode, as explained in the module description. The default value is False, which disables immediate mode. |
Definition at line 614 of file Consumer.php.
References Auth_OpenID_getAvailableSessionTypes(), Auth_OpenID_getDefaultNegotiator(), and Auth_Yadis_Yadis\getHTTPFetcher().
Here is the call graph for this function:| Auth_OpenID_GenericConsumer::begin | ( | $service_endpoint | ) |
Called to begin OpenID authentication using the specified Auth_OpenID_ServiceEndpoint.
private
Definition at line 631 of file Consumer.php.
References $r, and Auth_OpenID_mkNonce().
Here is the call graph for this function:| Auth_OpenID_GenericConsumer::complete | ( | $message, | |
| $endpoint, | |||
| $return_to | |||
| ) |
Given an Auth_OpenID_Message, Auth_OpenID_ServiceEndpoint and optional return_to URL, complete OpenID authentication.
private
Definition at line 653 of file Consumer.php.
References Auth_OpenID\arrayGet(), and Auth_OpenID_OPENID_NS.
Here is the call graph for this function:| Auth_OpenID_GenericConsumer::$_use_assocs |
private
Definition at line 582 of file Consumer.php.
| Auth_OpenID_GenericConsumer::$discoverMethod = 'Auth_OpenID_discover' |
private
Definition at line 572 of file Consumer.php.
| Auth_OpenID_GenericConsumer::$openid1_nonce_query_arg_name = 'janrain_nonce' |
private
Definition at line 587 of file Consumer.php.
| Auth_OpenID_GenericConsumer::$openid1_return_to_identifier_name = 'openid1_claimed_id' |
Another query parameter that gets added to the return_to for OpenID 1; if the user's session state is lost, use this claimed identifier to do discovery when verifying the response.
Definition at line 594 of file Consumer.php.
| Auth_OpenID_GenericConsumer::$store |
This consumer's store object.
Definition at line 577 of file Consumer.php.