|
TYPO3 API
SVNRelease
|
Public Member Functions | |
| Auth_OpenID_GenericConsumer ($store) | |
| begin ($service_endpoint) | |
| complete ($message, $endpoint, $return_to) | |
| _completeInvalid ($message, $endpoint, $unused) | |
| _complete_cancel ($message, $endpoint, $unused) | |
| _complete_error ($message, $endpoint, $unused) | |
| _complete_setup_needed ($message, $endpoint, $unused) | |
| _complete_id_res ($message, $endpoint, $return_to) | |
| _checkSetupNeeded ($message) | |
| _doIdRes ($message, $endpoint, $return_to) | |
| _checkReturnTo ($message, $return_to) | |
| _verifyReturnToArgs ($query) | |
| _idResCheckSignature ($message, $server_url) | |
| _verifyDiscoveryResults ($message, $endpoint=null) | |
| _verifyDiscoveryResultsOpenID1 ($message, $endpoint) | |
| _verifyDiscoverySingle ($endpoint, $to_match) | |
| _verifyDiscoveryResultsOpenID2 ($message, $endpoint) | |
| _discoverAndVerify ($claimed_id, $to_match_endpoints) | |
| _verifyDiscoveryServices ($claimed_id, $services, $to_match_endpoints) | |
| _idResGetNonceOpenID1 ($message, $endpoint) | |
| _idResCheckNonce ($message, $endpoint) | |
| _idResCheckForFields ($message) | |
| _checkAuth ($message, $server_url) | |
| _createCheckAuthRequest ($message) | |
| _processCheckAuthResponse ($response, $server_url) | |
| _httpResponseToMessage ($response, $server_url) | |
| _makeKVPost ($message, $server_url) | |
| _getAssociation ($endpoint) | |
| _extractSupportedAssociationType ($server_error, $endpoint, $assoc_type) | |
| _negotiateAssociation ($endpoint) | |
| _requestAssociation ($endpoint, $assoc_type, $session_type) | |
| _extractAssociation ($assoc_response, $assoc_session) | |
| _createAssociateRequest ($endpoint, $assoc_type, $session_type) | |
| _getOpenID1SessionType ($assoc_response) | |
Public Attributes | |
| $discoverMethod = 'Auth_OpenID_discover' | |
| $store | |
| $_use_assocs | |
| $openid1_nonce_query_arg_name = 'janrain_nonce' | |
| $openid1_return_to_identifier_name = 'openid1_claimed_id' | |
Definition at line 568 of file Consumer.php.
| Auth_OpenID_GenericConsumer::_checkAuth | ( | $ | message, |
| $ | server_url | ||
| ) |
private
Definition at line 1339 of file Consumer.php.
References _createCheckAuthRequest(), _makeKVPost(), and _processCheckAuthResponse().
Referenced by _idResCheckSignature().
| Auth_OpenID_GenericConsumer::_checkReturnTo | ( | $ | message, |
| $ | return_to | ||
| ) |
private
Definition at line 813 of file Consumer.php.
References _verifyReturnToArgs(), Auth_OpenID\arrayGet(), Auth_OpenID_urinorm(), and Auth_OpenID\isFailure().
Referenced by _doIdRes().
| Auth_OpenID_GenericConsumer::_checkSetupNeeded | ( | $ | message | ) |
| Auth_OpenID_GenericConsumer::_complete_cancel | ( | $ | message, |
| $ | endpoint, | ||
| $ | unused | ||
| ) |
private
Definition at line 687 of file Consumer.php.
| Auth_OpenID_GenericConsumer::_complete_error | ( | $ | message, |
| $ | endpoint, | ||
| $ | unused | ||
| ) |
private
Definition at line 695 of file Consumer.php.
| Auth_OpenID_GenericConsumer::_complete_id_res | ( | $ | message, |
| $ | endpoint, | ||
| $ | return_to | ||
| ) |
private
Definition at line 722 of file Consumer.php.
References _checkSetupNeeded(), and _doIdRes().
| Auth_OpenID_GenericConsumer::_complete_setup_needed | ( | $ | message, |
| $ | endpoint, | ||
| $ | unused | ||
| ) |
| Auth_OpenID_GenericConsumer::_completeInvalid | ( | $ | message, |
| $ | endpoint, | ||
| $ | unused | ||
| ) |
| Auth_OpenID_GenericConsumer::_createAssociateRequest | ( | $ | endpoint, |
| $ | assoc_type, | ||
| $ | session_type | ||
| ) |
private
Definition at line 1666 of file Consumer.php.
References Auth_OpenID_Message\fromOpenIDArgs().
Referenced by _requestAssociation().
| Auth_OpenID_GenericConsumer::_createCheckAuthRequest | ( | $ | message | ) |
private
Definition at line 1358 of file Consumer.php.
References $value.
Referenced by _checkAuth().
| Auth_OpenID_GenericConsumer::_discoverAndVerify | ( | $ | claimed_id, |
| $ | to_match_endpoints | ||
| ) |
private
Definition at line 1183 of file Consumer.php.
References _verifyDiscoveryServices().
Referenced by _verifyDiscoveryResultsOpenID1(), and _verifyDiscoveryResultsOpenID2().
| Auth_OpenID_GenericConsumer::_doIdRes | ( | $ | message, |
| $ | endpoint, | ||
| $ | return_to | ||
| ) |
private
Definition at line 757 of file Consumer.php.
References _checkReturnTo(), _idResCheckForFields(), _idResCheckNonce(), _idResCheckSignature(), _verifyDiscoveryResults(), Auth_OpenID\addPrefix(), and Auth_OpenID\isFailure().
Referenced by _complete_id_res().
| Auth_OpenID_GenericConsumer::_extractAssociation | ( | $ | assoc_response, |
| $ | assoc_session | ||
| ) |
private
Definition at line 1574 of file Consumer.php.
References _getOpenID1SessionType(), Auth_OpenID_Association\fromExpiresIn(), Auth_OpenID\intval(), and Auth_OpenID\isFailure().
Referenced by _requestAssociation().
| Auth_OpenID_GenericConsumer::_extractSupportedAssociationType | ( | $ | server_error, |
| $ | endpoint, | ||
| $ | assoc_type | ||
| ) |
Handle ServerErrors resulting from association requests.
private
Definition at line 1469 of file Consumer.php.
Referenced by _negotiateAssociation().
| Auth_OpenID_GenericConsumer::_getAssociation | ( | $ | endpoint | ) |
private
Definition at line 1438 of file Consumer.php.
References _negotiateAssociation().
Referenced by begin().
| 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 1713 of file Consumer.php.
Referenced by _extractAssociation().
| Auth_OpenID_GenericConsumer::_httpResponseToMessage | ( | $ | response, |
| $ | server_url | ||
| ) |
Adapt a POST response to a Message.
| $response | Result of a POST to an OpenID endpoint. |
private
Definition at line 1405 of file Consumer.php.
References Auth_OpenID_Message\fromKVForm(), and Auth_OpenID_ServerErrorContainer\fromMessage().
Referenced by _makeKVPost().
| Auth_OpenID_GenericConsumer::_idResCheckForFields | ( | $ | message | ) |
private
Definition at line 1287 of file Consumer.php.
References Auth_OpenID\isFailure().
Referenced by _doIdRes().
| Auth_OpenID_GenericConsumer::_idResCheckNonce | ( | $ | message, |
| $ | endpoint | ||
| ) |
private
Definition at line 1249 of file Consumer.php.
References _idResGetNonceOpenID1(), and Auth_OpenID_splitNonce().
Referenced by _doIdRes().
| Auth_OpenID_GenericConsumer::_idResCheckSignature | ( | $ | message, |
| $ | server_url | ||
| ) |
private
Definition at line 937 of file Consumer.php.
References _checkAuth(), and Auth_OpenID\isFailure().
Referenced by _doIdRes().
| 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 1240 of file Consumer.php.
Referenced by _idResCheckNonce().
| Auth_OpenID_GenericConsumer::_makeKVPost | ( | $ | message, |
| $ | server_url | ||
| ) |
private
Definition at line 1423 of file Consumer.php.
References _httpResponseToMessage().
Referenced by _checkAuth(), and _requestAssociation().
| Auth_OpenID_GenericConsumer::_negotiateAssociation | ( | $ | endpoint | ) |
private
Definition at line 1504 of file Consumer.php.
References _extractSupportedAssociationType(), _requestAssociation(), and Auth_OpenID\isFailure().
Referenced by _getAssociation().
| Auth_OpenID_GenericConsumer::_processCheckAuthResponse | ( | $ | response, |
| $ | server_url | ||
| ) |
| Auth_OpenID_GenericConsumer::_requestAssociation | ( | $ | endpoint, |
| $ | assoc_type, | ||
| $ | session_type | ||
| ) |
private
Definition at line 1553 of file Consumer.php.
References _createAssociateRequest(), _extractAssociation(), and _makeKVPost().
Referenced by _negotiateAssociation().
| Auth_OpenID_GenericConsumer::_verifyDiscoveryResults | ( | $ | message, |
| $ | endpoint = null |
||
| ) |
private
Definition at line 984 of file Consumer.php.
References _verifyDiscoveryResultsOpenID1(), and _verifyDiscoveryResultsOpenID2().
Referenced by _doIdRes().
| Auth_OpenID_GenericConsumer::_verifyDiscoveryResultsOpenID1 | ( | $ | message, |
| $ | endpoint | ||
| ) |
private
Definition at line 998 of file Consumer.php.
References _discoverAndVerify(), _verifyDiscoverySingle(), and Auth_OpenID\isFailure().
Referenced by _verifyDiscoveryResults().
| Auth_OpenID_GenericConsumer::_verifyDiscoveryResultsOpenID2 | ( | $ | message, |
| $ | endpoint | ||
| ) |
private
Definition at line 1107 of file Consumer.php.
References _discoverAndVerify(), _verifyDiscoverySingle(), Auth_OpenID_ServiceEndpoint\fromOPEndpointURL(), and Auth_OpenID\isFailure().
Referenced by _verifyDiscoveryResults().
| Auth_OpenID_GenericConsumer::_verifyDiscoveryServices | ( | $ | claimed_id, |
| $ | services, | ||
| $ | to_match_endpoints | ||
| ) |
private
Definition at line 1205 of file Consumer.php.
References _verifyDiscoverySingle(), and Auth_OpenID\isFailure().
Referenced by _discoverAndVerify().
| Auth_OpenID_GenericConsumer::_verifyDiscoverySingle | ( | $ | endpoint, |
| $ | to_match | ||
| ) |
private
Definition at line 1055 of file Consumer.php.
References Auth_OpenID\urldefrag().
Referenced by _verifyDiscoveryResultsOpenID1(), _verifyDiscoveryResultsOpenID2(), and _verifyDiscoveryServices().
| Auth_OpenID_GenericConsumer::_verifyReturnToArgs | ( | $ | query | ) |
private
Definition at line 880 of file Consumer.php.
References $query, $value, Auth_OpenID\arrayGet(), Auth_OpenID_Message\fromPostArgs(), Auth_OpenID\isFailure(), and Auth_OpenID\parse_str().
Referenced by _checkReturnTo().
| 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 $store, Auth_OpenID_getAvailableSessionTypes(), Auth_OpenID_getDefaultNegotiator(), and Auth_Yadis_Yadis\getHTTPFetcher().
| 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 _getAssociation(), and Auth_OpenID_mkNonce().
| 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().
| 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.
Referenced by Auth_OpenID_GenericConsumer().
1.7.5.1