mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-12-23 19:00:15 +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
|
||||
*/
|
||||
|
||||
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
|
||||
*/
|
||||
|
@ -47,7 +53,7 @@ class TwitterOAuth
|
|||
private $token;
|
||||
/** @var OAuthConsumer */
|
||||
private $consumer;
|
||||
/** @var OAuthSignatureMethod_HMAC_SHA1 */
|
||||
/** @var \Friendica\Security\OAuth1\Signature\OAuthSignatureMethod_HMAC_SHA1 */
|
||||
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)
|
||||
*/
|
||||
|
||||
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
|
||||
*/
|
||||
|
@ -45,7 +51,7 @@ class TumblrOAuth
|
|||
private $token;
|
||||
/** @var OAuthConsumer */
|
||||
private $consumer;
|
||||
/** @var OAuthSignatureMethod_HMAC_SHA1 */
|
||||
/** @var \Friendica\Security\OAuth1\Signature\OAuthSignatureMethod_HMAC_SHA1 */
|
||||
private $sha1_method;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue