Lines Matching refs:endpoint

339         $endpoint = $disco->getNextService($this->discoverMethod,
350 if ($endpoint === null) {
353 return $this->beginWithoutDiscovery($endpoint,
365 * @param Auth_OpenID_ServiceEndpoint $endpoint an OpenID service
374 function beginWithoutDiscovery($endpoint, $anonymous=false) argument
377 $auth_req = $this->consumer->begin($endpoint);
379 $loader->toSession($auth_req->endpoint));
427 $endpoint =
431 $response = $this->consumer->complete($message, $endpoint,
662 $r->endpoint->claimed_id;
675 * @param Auth_OpenID_ServiceEndpoint $endpoint
679 function complete($message, $endpoint, $return_to) argument
695 [$message, $endpoint, $return_to]);
701 * @param Auth_OpenID_ServiceEndpoint $endpoint
704 function _completeInvalid($message, $endpoint) argument
709 return new Auth_OpenID_FailureResponse($endpoint,
716 * @param Auth_OpenID_ServiceEndpoint $endpoint
719 function _complete_cancel($message, $endpoint) argument
721 return new Auth_OpenID_CancelResponse($endpoint);
727 * @param Auth_OpenID_ServiceEndpoint $endpoint
730 function _complete_error($message, $endpoint) argument
736 return new Auth_OpenID_FailureResponse($endpoint, $error,
743 * @param Auth_OpenID_ServiceEndpoint $endpoint
746 function _complete_setup_needed($message, $endpoint) argument
749 return $this->_completeInvalid($message, $endpoint);
754 return new Auth_OpenID_SetupNeededResponse($endpoint, $user_setup_url);
760 * @param Auth_OpenID_ServiceEndpoint $endpoint
764 function _complete_id_res($message, $endpoint, $return_to) argument
769 return new Auth_OpenID_SetupNeededResponse($endpoint, $user_setup_url);
771 return $this->_doIdRes($message, $endpoint, $return_to);
799 * @param Auth_OpenID_ServiceEndpoint $endpoint
803 function _doIdRes($message, $endpoint, $return_to) argument
821 $result = $this->_verifyDiscoveryResults($message, $endpoint);
827 $endpoint = $result;
829 $result = $this->_idResCheckSignature($message, $endpoint->server_url);
835 $result = $this->_idResCheckNonce($message, $endpoint);
850 return new Auth_OpenID_SuccessResponse($endpoint, $message,
1037 * @param Auth_OpenID_ServiceEndpoint|null $endpoint
1040 function _verifyDiscoveryResults($message, $endpoint=null) argument
1043 return $this->_verifyDiscoveryResultsOpenID2($message, $endpoint);
1045 return $this->_verifyDiscoveryResultsOpenID1($message, $endpoint);
1052 * @param Auth_OpenID_ServiceEndpoint $endpoint
1055 function _verifyDiscoveryResultsOpenID1($message, $endpoint) argument
1060 if (($endpoint === null) && ($claimed_id === null)) {
1061 return new Auth_OpenID_FailureResponse($endpoint,
1066 } else if (($endpoint !== null) && ($claimed_id === null)) {
1067 $claimed_id = $endpoint->claimed_id;
1079 return new Auth_OpenID_FailureResponse($endpoint,
1086 if ($endpoint !== null) {
1087 $result = $this->_verifyDiscoverySingle($endpoint, $to_match);
1090 $result = $this->_verifyDiscoverySingle($endpoint,
1100 return $endpoint;
1111 * @param Auth_OpenID_ServiceEndpoint $endpoint
1115 function _verifyDiscoverySingle($endpoint, $to_match) argument
1120 if (!$endpoint->usesExtension($type_uri)) {
1121 return new Auth_OpenID_TypeURIMismatch($endpoint,
1131 if ($defragged_claimed_id != $endpoint->claimed_id) {
1132 return new Auth_OpenID_FailureResponse($endpoint,
1135 $endpoint->claimed_id));
1138 if ($to_match->getLocalID() != $endpoint->getLocalID()) {
1139 return new Auth_OpenID_FailureResponse($endpoint,
1141 $to_match->getLocalID(), $endpoint->getLocalID()));
1151 return new Auth_OpenID_FailureResponse($endpoint,
1154 } else if ($to_match->server_url != $endpoint->server_url) {
1155 return new Auth_OpenID_FailureResponse($endpoint,
1157 $to_match->server_url, $endpoint->server_url));
1166 * @param Auth_OpenID_ServiceEndpoint $endpoint
1169 function _verifyDiscoveryResultsOpenID2($message, $endpoint) argument
1183 return new Auth_OpenID_FailureResponse($endpoint,
1191 return new Auth_OpenID_FailureResponse($endpoint,
1197 return new Auth_OpenID_FailureResponse($endpoint,
1209 if (!$endpoint) {
1222 $result = $this->_verifyDiscoverySingle($endpoint, $to_match);
1225 $endpoint = $this->_discoverAndVerify($to_match->claimed_id,
1227 if (Auth_OpenID::isFailure($endpoint)) {
1228 return $endpoint;
1235 if ($endpoint->claimed_id != $to_match->claimed_id) {
1236 $endpoint->claimed_id = $to_match->claimed_id;
1239 return $endpoint;
1281 foreach ($services as $endpoint) {
1283 $result = $this->_verifyDiscoverySingle($endpoint, $to_match_endpoint);
1288 return $endpoint;
1319 * @param Auth_OpenID_ServiceEndpoint $endpoint
1322 function _idResCheckNonce($message, $endpoint) argument
1332 $server_url = $endpoint->server_url;
1336 return new Auth_OpenID_FailureResponse($endpoint,
1343 return new Auth_OpenID_FailureResponse($endpoint,
1350 return new Auth_OpenID_FailureResponse($endpoint,
1526 * @param Auth_OpenID_ServiceEndpoint $endpoint
1529 function _getAssociation($endpoint) argument
1535 $assoc = $this->store->getAssociation($endpoint->server_url);
1540 $assoc = $this->_negotiateAssociation($endpoint);
1543 $this->store->storeAssociation($endpoint->server_url, $assoc);
1592 * @param Auth_OpenID_ServiceEndpoint $endpoint
1595 function _negotiateAssociation($endpoint) argument
1601 $endpoint, $assoc_type, $session_type);
1617 $endpoint, $assoc_type, $session_type);
1640 * @param Auth_OpenID_ServiceEndpoint $endpoint
1645 function _requestAssociation($endpoint, $assoc_type, $session_type) argument
1648 $endpoint, $assoc_type, $session_type);
1650 $response_message = $this->_makeKVPost($args, $endpoint->server_url);
1760 * @param Auth_OpenID_ServiceEndpoint $endpoint
1765 function _createAssociateRequest($endpoint, $assoc_type, $session_type) argument
1785 if (!$endpoint->compatibilityMode()) {
1791 if ((!$endpoint->compatibilityMode()) ||
1854 public $endpoint; variable in Auth_OpenID_AuthRequest
1873 * @param Auth_OpenID_ServiceEndpoint $endpoint
1876 function __construct($endpoint, $assoc) argument
1879 $this->endpoint = $endpoint;
1881 $this->message = new Auth_OpenID_Message($endpoint->preferredNamespace());
2011 if ($this->endpoint->isOPIdentifier()) {
2018 $request_identity = $this->endpoint->getLocalID();
2019 $claimed_id = $this->endpoint->claimed_id;
2049 return $message->toURL($this->endpoint->server_url);
2075 return $message->toFormMarkup($this->endpoint->server_url, $form_tag_attrs);
2104 return $this->endpoint->compatibilityMode();
2120 public $endpoint; variable in Auth_OpenID_ConsumerResponse
2123 * @param Auth_OpenID_ServiceEndpoint|null $endpoint
2125 function setEndpoint($endpoint) argument
2127 $this->endpoint = $endpoint;
2128 if ($endpoint === null) {
2131 $this->identity_url = $endpoint->claimed_id;
2154 if ($this->endpoint !== null) {
2155 return $this->endpoint->getDisplayIdentifier();
2186 * @param Auth_OpenID_ServiceEndpoint $endpoint
2190 function __construct($endpoint, $message, $signed_args=null) argument
2192 $this->endpoint = $endpoint;
2193 $this->identity_url = $endpoint->claimed_id;
2300 function __construct($endpoint, $message = null, $contact = null, $reference = null) argument
2302 $this->setEndpoint($endpoint);
2381 * @param Auth_OpenID_ServiceEndpoint $endpoint
2383 function __construct($endpoint) argument
2385 $this->setEndpoint($endpoint);
2415 * @param Auth_OpenID_ServiceEndpoint $endpoint
2418 function __construct($endpoint, $setup_url = null) argument
2420 $this->setEndpoint($endpoint);