mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-12-24 02:00:16 +00:00
Merge pull request #1026 from nupplaphil/task/security_restructure
Restructure Security classes
This commit is contained in:
commit
f5ceead5e0
2 changed files with 14 additions and 2 deletions
|
@ -8,6 +8,12 @@
|
||||||
* Version 0.2.0 kept for compatibility purpose with StatusNetOAuth
|
* Version 0.2.0 kept for compatibility purpose with StatusNetOAuth
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
use Friendica\Security\OAuth1\OAuthConsumer;
|
||||||
|
use Friendica\Security\OAuth1\OAuthRequest;
|
||||||
|
use Friendica\Security\OAuth1\Signature\OAuthSignatureMethod_HMAC_SHA1;
|
||||||
|
use Friendica\Security\OAuth1\OAuthToken;
|
||||||
|
use Friendica\Security\OAuth1\OAuthUtil;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Twitter OAuth class
|
* Twitter OAuth class
|
||||||
*/
|
*/
|
||||||
|
@ -47,7 +53,7 @@ class TwitterOAuth
|
||||||
private $token;
|
private $token;
|
||||||
/** @var OAuthConsumer */
|
/** @var OAuthConsumer */
|
||||||
private $consumer;
|
private $consumer;
|
||||||
/** @var OAuthSignatureMethod_HMAC_SHA1 */
|
/** @var \Friendica\Security\OAuth1\Signature\OAuthSignatureMethod_HMAC_SHA1 */
|
||||||
private $sha1_method;
|
private $sha1_method;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -6,6 +6,12 @@
|
||||||
* The first PHP Library to support OAuth for Tumblr's REST API. (Originally for Twitter, modified for Tumblr by Lucas)
|
* The first PHP Library to support OAuth for Tumblr's REST API. (Originally for Twitter, modified for Tumblr by Lucas)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
use Friendica\Security\OAuth1\OAuthConsumer;
|
||||||
|
use Friendica\Security\OAuth1\OAuthRequest;
|
||||||
|
use Friendica\Security\OAuth1\Signature\OAuthSignatureMethod_HMAC_SHA1;
|
||||||
|
use Friendica\Security\OAuth1\OAuthToken;
|
||||||
|
use Friendica\Security\OAuth1\OAuthUtil;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tumblr OAuth class
|
* Tumblr OAuth class
|
||||||
*/
|
*/
|
||||||
|
@ -45,7 +51,7 @@ class TumblrOAuth
|
||||||
private $token;
|
private $token;
|
||||||
/** @var OAuthConsumer */
|
/** @var OAuthConsumer */
|
||||||
private $consumer;
|
private $consumer;
|
||||||
/** @var OAuthSignatureMethod_HMAC_SHA1 */
|
/** @var \Friendica\Security\OAuth1\Signature\OAuthSignatureMethod_HMAC_SHA1 */
|
||||||
private $sha1_method;
|
private $sha1_method;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue