コード例 #1
0
ファイル: sfOAuthServer.php プロジェクト: vmorant/ttupf
 public function __construct($data_store)
 {
     parent::__construct($data_store);
     $hmac_method = new OAuthSignatureMethod_HMAC_SHA1();
     $this->add_signature_method($hmac_method);
     $this->timestamp_threshold = 300;
     // a token (in requestToken) expires before 300 secondes
 }
コード例 #2
0
ファイル: cpgOAuth.php プロジェクト: phill104/branches
 function __construct($consumer_key, $nonce, $timestamp, $signature_method, $signature, $token)
 {
     $this->setParam('oauth_token', $token, true);
     $this->setParam('oauth_consumer_key', $consumer_key, true);
     $this->setParam('oauth_nonce', $nonce, true);
     $this->setParam('oauth_timestamp', $timestamp, true);
     $this->setParam('oauth_signature_method', $signature_method, true);
     $this->setParam('oauth_signature', $signature, true);
     parent::__construct();
 }
コード例 #3
0
ファイル: oauth.php プロジェクト: nextgensh/friendica
 function __construct()
 {
     parent::__construct(new FKOAuthDataStore());
     $this->add_signature_method(new OAuthSignatureMethod_PLAINTEXT());
     $this->add_signature_method(new OAuthSignatureMethod_HMAC_SHA1());
 }
コード例 #4
0
 /**
  * constructor to set the signatures
  */
 public function __construct()
 {
     $this->add_signature_method(new OAuthSignatureMethod_HMAC_SHA1());
     parent::__construct(new OAuthSymfonyStore());
 }
コード例 #5
0
 public function __construct($data_store)
 {
     parent::__construct($data_store);
     $this->add_signature_method(new OAuthSignatureMethod_HMAC_SHA1());
 }