Lines Matching refs:endpoint

338         $endpoint = $disco->getNextService($this->discoverMethod,
349 if ($endpoint === null) {
352 return $this->beginWithoutDiscovery($endpoint,
364 * @param Auth_OpenID_ServiceEndpoint $endpoint an OpenID service
373 function beginWithoutDiscovery($endpoint, $anonymous=false) argument
376 $auth_req = $this->consumer->begin($endpoint);
378 $loader->toSession($auth_req->endpoint));
426 $endpoint =
430 $response = $this->consumer->complete($message, $endpoint,
640 $r->endpoint->claimed_id;
653 function complete($message, $endpoint, $return_to) argument
669 array($message, &$endpoint, $return_to));
675 function _completeInvalid($message, $endpoint, $unused) argument
680 return new Auth_OpenID_FailureResponse($endpoint,
687 function _complete_cancel($message, $endpoint, $unused) argument
689 return new Auth_OpenID_CancelResponse($endpoint);
695 function _complete_error($message, $endpoint, $unused) argument
701 return new Auth_OpenID_FailureResponse($endpoint, $error,
708 function _complete_setup_needed($message, $endpoint, $unused) argument
711 return $this->_completeInvalid($message, $endpoint);
716 return new Auth_OpenID_SetupNeededResponse($endpoint, $user_setup_url);
722 function _complete_id_res($message, $endpoint, $return_to) argument
729 $endpoint, $user_setup_url);
731 return $this->_doIdRes($message, $endpoint, $return_to);
757 function _doIdRes($message, $endpoint, $return_to) argument
775 $result = $this->_verifyDiscoveryResults($message, $endpoint);
781 $endpoint = $result;
784 $endpoint->server_url);
790 $result = $this->_idResCheckNonce($message, $endpoint);
805 return new Auth_OpenID_SuccessResponse($endpoint, $message,
984 function _verifyDiscoveryResults($message, $endpoint=null) argument
988 $endpoint);
991 $endpoint);
998 function _verifyDiscoveryResultsOpenID1($message, $endpoint) argument
1003 if (($endpoint === null) && ($claimed_id === null)) {
1004 return new Auth_OpenID_FailureResponse($endpoint,
1009 } else if (($endpoint !== null) && ($claimed_id === null)) {
1010 $claimed_id = $endpoint->claimed_id;
1022 return new Auth_OpenID_FailureResponse($endpoint,
1029 if ($endpoint !== null) {
1030 $result = $this->_verifyDiscoverySingle($endpoint, $to_match);
1033 $result = $this->_verifyDiscoverySingle($endpoint,
1043 return $endpoint;
1055 function _verifyDiscoverySingle($endpoint, $to_match) argument
1060 if (!$endpoint->usesExtension($type_uri)) {
1061 return new Auth_OpenID_TypeURIMismatch($endpoint,
1072 if ($defragged_claimed_id != $endpoint->claimed_id) {
1073 return new Auth_OpenID_FailureResponse($endpoint,
1076 $endpoint->claimed_id));
1079 if ($to_match->getLocalID() != $endpoint->getLocalID()) {
1080 return new Auth_OpenID_FailureResponse($endpoint,
1082 $to_match->getLocalID(), $endpoint->getLocalID()));
1092 return new Auth_OpenID_FailureResponse($endpoint,
1095 } else if ($to_match->server_url != $endpoint->server_url) {
1096 return new Auth_OpenID_FailureResponse($endpoint,
1098 $to_match->server_url, $endpoint->server_url));
1107 function _verifyDiscoveryResultsOpenID2($message, $endpoint) argument
1121 return new Auth_OpenID_FailureResponse($endpoint,
1129 return new Auth_OpenID_FailureResponse($endpoint,
1135 return new Auth_OpenID_FailureResponse($endpoint,
1147 if (!$endpoint) {
1160 $result = $this->_verifyDiscoverySingle($endpoint, $to_match);
1163 $endpoint = $this->_discoverAndVerify($to_match->claimed_id,
1165 if (Auth_OpenID::isFailure($endpoint)) {
1166 return $endpoint;
1173 if ($endpoint->claimed_id != $to_match->claimed_id) {
1174 $endpoint->claimed_id = $to_match->claimed_id;
1177 return $endpoint;
1209 foreach ($services as $endpoint) {
1211 $result = $this->_verifyDiscoverySingle($endpoint,
1217 return $endpoint;
1238 function _idResGetNonceOpenID1($message, $endpoint) argument
1247 function _idResCheckNonce($message, $endpoint) argument
1251 $nonce = $this->_idResGetNonceOpenID1($message, $endpoint);
1257 $server_url = $endpoint->server_url;
1261 return new Auth_OpenID_FailureResponse($endpoint,
1268 return new Auth_OpenID_FailureResponse($endpoint,
1275 return new Auth_OpenID_FailureResponse($endpoint,
1437 function _getAssociation($endpoint) argument
1443 $assoc = $this->store->getAssociation($endpoint->server_url);
1448 $assoc = $this->_negotiateAssociation($endpoint);
1451 $this->store->storeAssociation($endpoint->server_url,
1468 function _extractSupportedAssociationType($server_error, $endpoint, argument
1503 function _negotiateAssociation($endpoint) argument
1509 $endpoint, $assoc_type, $session_type);
1519 $why, $endpoint, $assoc_type);
1528 $endpoint, $assoc_type, $session_type);
1552 function _requestAssociation($endpoint, $assoc_type, $session_type) argument
1555 $endpoint, $assoc_type, $session_type);
1557 $response_message = $this->_makeKVPost($args, $endpoint->server_url);
1665 function _createAssociateRequest($endpoint, $assoc_type, $session_type) argument
1683 if (!$endpoint->compatibilityMode()) {
1689 if ((!$endpoint->compatibilityMode()) ||
1755 function Auth_OpenID_AuthRequest($endpoint, $assoc) argument
1758 $this->endpoint = $endpoint;
1761 $endpoint->preferredNamespace());
1883 if ($this->endpoint->isOPIdentifier()) {
1890 $request_identity = $this->endpoint->getLocalID();
1891 $claimed_id = $this->endpoint->claimed_id;
1921 return $message->toURL($this->endpoint->server_url);
1941 return $message->toFormMarkup($this->endpoint->server_url,
1965 return $this->endpoint->compatibilityMode();
1977 function setEndpoint($endpoint) argument
1979 $this->endpoint = $endpoint;
1980 if ($endpoint === null) {
1983 $this->identity_url = $endpoint->claimed_id;
2006 if ($this->endpoint !== null) {
2007 return $this->endpoint->getDisplayIdentifier();
2034 function Auth_OpenID_SuccessResponse($endpoint, $message, $signed_args=null) argument
2036 $this->endpoint = $endpoint;
2037 $this->identity_url = $endpoint->claimed_id;
2137 function Auth_OpenID_FailureResponse($endpoint, $message = null, argument
2140 $this->setEndpoint($endpoint);
2200 function Auth_OpenID_CancelResponse($endpoint) argument
2202 $this->setEndpoint($endpoint);
2226 function Auth_OpenID_SetupNeededResponse($endpoint, argument
2229 $this->setEndpoint($endpoint);