PATH:
home
/
letacommog
/
letaweb
/
admin
/
classes
/
payments
/
paypal-sdk-core
/
lib
/
auth
<?php //vim: foldmethod=marker class MockOAuthDataStore extends OAuthDataStore { /*{{{*/ private $consumer; private $request_token; private $access_token; private $nonce; public function __construct() {/*{{{*/ $this->consumer = new OAuthConsumer('key', 'secret', null); $this->request_token = new OAuthToken('requestkey', 'requestsecret', 1); $this->access_token = new OAuthToken('accesskey', 'accesssecret', 1); $this->nonce = 'nonce'; }/*}}}*/ public function lookup_consumer($consumer_key) {/*{{{*/ if ($consumer_key == $this->consumer->key) { return $this->consumer; } return; }/*}}}*/ public function lookup_token($consumer, $token_type, $token) {/*{{{*/ $token_attrib = $token_type.'_token'; if ($consumer->key == $this->consumer->key && $token == $this->$token_attrib->key) { return $this->$token_attrib; } return; }/*}}}*/ public function lookup_nonce($consumer, $token, $nonce, $timestamp) {/*{{{*/ if ($consumer->key == $this->consumer->key && (($token && $token->key == $this->request_token->key) || ($token && $token->key == $this->access_token->key)) && $nonce == $this->nonce) { return $this->nonce; } return; }/*}}}*/ public function new_request_token($consumer, $callback = null) {/*{{{*/ if ($consumer->key == $this->consumer->key) { return $this->request_token; } return; }/*}}}*/ public function new_access_token($token, $consumer, $verifier = null) {/*{{{*/ if ($consumer->key == $this->consumer->key && $token->key == $this->request_token->key) { return $this->access_token; } return; }/*}}}*/ }/*}}}*/
[+]
..
[-] IPPCredential.php
[edit]
[-] PPSubjectAuthorization.php
[edit]
[-] PPTokenAuthorization.php
[edit]
[-] AuthUtil.php
[edit]
[-] PPCertificateCredential.php
[edit]
[-] PPAuth.php
[edit]
[-] PPSignatureCredential.php
[edit]
[+]
openid
[-] IPPThirdPartyAuthorization.php
[edit]