Lines Matching refs:this

177         $this->message = $message;
178 $this->text = $text;
179 $this->contact = $contact;
180 $this->reference = $reference;
185 if ($this->message &&
186 $this->message->hasKey(Auth_OpenID_OPENID_NS, 'return_to')) {
187 return $this->message->getArg(Auth_OpenID_OPENID_NS,
200 return $this->getReturnTo() !== null;
210 if (!$this->message) {
214 $msg = $this->toMessage();
215 return $msg->toURL($this->getReturnTo());
229 'error' => $this->toString(),
236 $msg = $this->toMessage();
237 return $msg->toFormMarkup($this->getReturnTo(), $form_tag_attrs);
243 $this->toFormMarkup($form_tag_attrs));
250 $namespace = $this->message->getOpenIDNamespace();
253 $reply->setArg(Auth_OpenID_OPENID_NS, 'error', $this->toString());
255 if ($this->contact !== null) {
256 $reply->setArg(Auth_OpenID_OPENID_NS, 'contact', $this->contact);
259 if ($this->reference !== null) {
261 $this->reference);
276 if ($this->hasReturnTo()) {
277 if ($this->message->isOpenID2() &&
278 (strlen($this->encodeToURL()) >
286 if (!$this->message) {
290 $mode = $this->message->getArg(Auth_OpenID_OPENID_NS,
306 if ($this->text) {
307 return $this->text;
309 return get_class($this) . " error";
344 $this->return_to = $return_to;
405 $this->assoc_handle = $assoc_handle;
406 $this->signed = $signed;
408 $this->invalidate_handle = $invalidate_handle;
410 $this->namespace = Auth_OpenID_OPENID2_NS;
450 $is_valid = $signatory->verify($this->assoc_handle, $this->signed);
454 $signatory->invalidate($this->assoc_handle, true);
455 $response = new Auth_OpenID_ServerResponse($this);
461 if ($this->invalidate_handle) {
462 $assoc = $signatory->getAssociation($this->invalidate_handle,
467 $this->invalidate_handle);
528 $this->dh = $dh;
529 $this->consumer_pubkey = $consumer_pubkey;
606 $mac_key = $this->dh->xorSecret($this->consumer_pubkey, $secret,
607 $this->hash_func);
610 $lib->longToBase64($this->dh->public),
672 $this->session = $session;
673 $this->namespace = Auth_OpenID_OPENID2_NS;
674 $this->assoc_type = $assoc_type;
739 $response = new Auth_OpenID_ServerResponse($this);
743 'assoc_type' => $this->assoc_type,
749 $this->session->answer($assoc->secret));
751 if (! ($this->session->session_type == 'no-encryption'
752 && $this->message->isOpenID1())) {
755 $this->session->session_type);
765 if ($this->message->isOpenID1()) {
766 return new Auth_OpenID_ServerError($this->message);
769 $response = new Auth_OpenID_ServerResponse($this);
882 $this->namespace = Auth_OpenID_OPENID2_NS;
883 $this->assoc_handle = $assoc_handle;
884 $this->identity = $identity;
886 $this->claimed_id = $identity;
888 $this->claimed_id = $claimed_id;
890 $this->return_to = $return_to;
891 $this->trust_root = $trust_root;
892 $this->server = $server;
895 $this->immediate = true;
896 $this->mode = "checkid_immediate";
898 $this->immediate = false;
899 $this->mode = "checkid_setup";
911 ($this->namespace == $other->namespace) &&
912 ($this->assoc_handle == $other->assoc_handle) &&
913 ($this->identity == $other->identity) &&
914 ($this->claimed_id == $other->claimed_id) &&
915 ($this->return_to == $other->return_to) &&
916 ($this->trust_root == $other->trust_root));
936 return call_user_func_array($this->verifyReturnTo,
937 [$this->trust_root, $this->return_to, $fetcher]);
1028 return $this->identity == Auth_OpenID_IDENTIFIER_SELECT;
1033 if (!$this->trust_root) {
1037 $tr = Auth_OpenID_TrustRoot::_parse($this->trust_root);
1039 return new Auth_OpenID_MalformedTrustRoot($this->message,
1040 $this->trust_root);
1043 if ($this->return_to !== null) {
1044 return Auth_OpenID_TrustRoot::match($this->trust_root,
1045 $this->return_to);
1093 if (!$this->return_to) {
1098 if ((!$this->message->isOpenID1()) &&
1099 (!$this->server->op_endpoint)) {
1105 $server_url = $this->server->op_endpoint;
1110 } else if ($this->message->isOpenID1()) {
1111 if ($this->immediate) {
1117 if ($this->immediate) {
1124 if (!$this->trustRootValid()) {
1126 $this->return_to,
1127 $this->trust_root);
1130 $response = new Auth_OpenID_ServerResponse($this);
1133 ($this->message->isOpenID1())) {
1136 "available for ".$this->namespace);
1145 if ($this->identity == Auth_OpenID_IDENTIFIER_SELECT) {
1155 } else if ($this->identity) {
1157 ($this->identity != $identity)) {
1160 sprintf($fmt, $this->identity, $identity));
1163 $response_identity = $this->identity;
1164 $response_claimed_id = $this->claimed_id;
1175 if (($this->message->isOpenID1()) &&
1185 'return_to' => $this->return_to,
1190 if (!$this->message->isOpenID1()) {
1200 if ($this->message->isOpenID2()) {
1212 if ($this->immediate) {
1213 if (($this->message->isOpenID1()) &&
1221 $this->identity,
1222 $this->return_to,
1223 $this->trust_root,
1225 $this->assoc_handle,
1226 $this->server,
1227 $this->claimed_id);
1228 $setup_request->message = $this->message;
1247 if (!$this->return_to) {
1257 'mode' => $this->mode,
1258 'identity' => $this->identity,
1259 'claimed_id' => $this->claimed_id,
1260 'return_to' => $this->return_to,
1263 if ($this->trust_root) {
1264 if ($this->message->isOpenID1()) {
1265 $q['trust_root'] = $this->trust_root;
1267 $q['realm'] = $this->trust_root;
1271 if ($this->assoc_handle) {
1272 $q['assoc_handle'] = $this->assoc_handle;
1276 $this->message->getOpenIDNamespace());
1283 if (!$this->return_to) {
1287 if ($this->immediate) {
1293 $this->message->getOpenIDNamespace());
1295 return $response->toURL($this->return_to);
1318 $this->request = $request;
1319 $this->fields = new Auth_OpenID_Message($this->request->namespace);
1326 if (in_array($this->request->mode, $_Auth_OpenID_Request_Modes)) {
1327 if ($this->fields->isOpenID2() &&
1328 (strlen($this->encodeToURL()) >
1346 return $this->fields->toFormMarkup($this->request->return_to,
1356 return Auth_OpenID::autoSubmitHTML($this->toFormMarkup());
1367 return $this->whichEncoding() == Auth_OpenID_ENCODE_HTML_FORM;
1373 return $this->fields->toURL($this->request->return_to);
1381 $extension_response->toMessage($this->fields);
1386 return $this->fields->getArg(Auth_OpenID_OPENID_NS,
1392 return $this->fields->toKVForm();
1410 $this->code = $code;
1414 $this->headers = $headers;
1416 $this->headers = [];
1420 $this->body = $body;
1454 $this->store = $store;
1467 $assoc = $this->getAssociation($assoc_handle, true);
1493 $assoc = $this->getAssociation($assoc_handle, false, false);
1501 $this->invalidate($assoc_handle, false);
1504 $assoc = $this->createAssociation(true, $assoc_type);
1508 $assoc = $this->createAssociation(true);
1532 $this->SECRET_LIFETIME, $handle, $secret, $assoc_type);
1535 $key = $this->dumb_key;
1537 $key = $this->normal_key;
1540 $this->store->storeAssociation($key, $assoc);
1561 $key = $this->dumb_key;
1563 $key = $this->normal_key;
1566 $assoc = $this->store->getAssociation($key, $assoc_handle);
1570 $this->store->removeAssociation($key, $assoc_handle);
1587 $key = $this->dumb_key;
1589 $key = $this->normal_key;
1591 $this->store->removeAssociation($key, $assoc_handle);
1614 $cls = $this->responseFactory;
1657 $this->signatory = $signatory;
1674 if (!$this->signatory) {
1682 $response = $this->signatory->sign($response);
1713 $this->server = $server;
1759 $handlerCls = Auth_OpenID::arrayGet($this->handlers, $mode,
1760 $this->defaultDecoder($message));
1764 [$message, $this->server]);
1797 $this->response = $response;
1832 $this->return_to = $return_to;
1833 $this->trust_root = $trust_root;
1839 $this->return_to, $this->trust_root);
1904 $this->store = $store;
1905 $this->signatory = new Auth_OpenID_Signatory($this->store);
1906 $this->encoder = new Auth_OpenID_SigningEncoder($this->signatory);
1907 $this->decoder = new Auth_OpenID_Decoder($this);
1908 $this->op_endpoint = $op_endpoint;
1909 $this->negotiator = Auth_OpenID_getDefaultNegotiator();
1925 if (method_exists($this, "openid_" . $request->mode)) {
1926 $handler = [$this, "openid_" . $request->mode];
1940 return $request->answer($this->signatory);
1953 if ($this->negotiator->isAllowed($assoc_type, $session_type)) {
1954 $assoc = $this->signatory->createAssociation(false,
1961 $this->negotiator->getAllowedType();
1977 return $this->encoder->encode($response);
1993 return $this->decoder->decode($query);