Lines Matching full:consumer
72 * @param OAuthConsumer $consumer
76 abstract public function build_signature($request, $consumer, $token); argument
81 * @param OAuthConsumer $consumer
86 public function check_signature($request, $consumer, $token, $signature) { argument
87 $built = $this->build_signature($request, $consumer, $token);
95 * encoded per Parameter Encoding) of the Consumer Secret and Token Secret, separated by an '&'
104 public function build_signature($request, $consumer, $token) { argument
109 $consumer->secret,
131 * oauth_signature is set to the concatenated encoded values of the Consumer Secret and
139 public function build_signature($request, $consumer, $token) { argument
141 $consumer->secret,
156 * EMSA-PKCS1-v1_5. It is assumed that the Consumer has provided its RSA public key in a
167 // (1) do a lookup in a table of trusted certs keyed off of consumer
175 // (1) do a lookup in a table of trusted certs keyed off of consumer
180 public function build_signature($request, $consumer, $token) { argument
199 public function check_signature($request, $consumer, $token, $signature) { argument
292 …public static function from_consumer_and_token($consumer, $token, $http_method, $http_url, $parame… argument
297 "oauth_consumer_key" => $consumer->key);
448 public function sign_request($signature_method, $consumer, $token) { argument
454 $signature = $this->build_signature($signature_method, $consumer, $token);
458 public function build_signature($signature_method, $consumer, $token) { argument
459 $signature = $signature_method->build_signature($this, $consumer, $token);
506 $consumer = $this->get_consumer($request);
511 $this->check_signature($request, $consumer, $token);
515 $new_token = $this->data_store->new_request_token($consumer, $callback);
527 $consumer = $this->get_consumer($request);
530 $token = $this->get_token($request, $consumer, "request");
532 $this->check_signature($request, $consumer, $token);
536 $new_token = $this->data_store->new_access_token($token, $consumer, $verifier);
546 $consumer = $this->get_consumer($request);
547 $token = $this->get_token($request, $consumer, "access");
548 $this->check_signature($request, $consumer, $token);
549 return array($consumer, $token);
594 * try to find the consumer for the provided request's consumer key
599 throw new OAuthException("Invalid consumer key");
602 $consumer = $this->data_store->lookup_consumer($consumer_key);
603 if (!$consumer) {
604 throw new OAuthException("Invalid consumer");
607 return $consumer;
613 private function get_token(&$request, $consumer, $token_type="access") { argument
616 $consumer, $token_type, $token_field
628 private function check_signature(&$request, $consumer, $token) { argument
634 $this->check_nonce($consumer, $token, $nonce, $timestamp);
641 $consumer,
672 private function check_nonce($consumer, $token, $nonce, $timestamp) { argument
680 $consumer,
697 function lookup_token($consumer, $token_type, $token) { argument
701 function lookup_nonce($consumer, $token, $nonce, $timestamp) { argument
705 function new_request_token($consumer, $callback = null) { argument
706 // return a new token attached to this consumer
709 function new_access_token($token, $consumer, $verifier = null) { argument
710 // return a new access token attached to this consumer