Browse Source

Move ExAuth, FKOAuth1 & FKOAuthDataStore to own namespace `Friendica\Security`

pull/9327/head
Philipp 3 weeks ago
parent
commit
8318a0b640
No known key found for this signature in database GPG Key ID: 9A28B7D4FF5667BD
13 changed files with 14 additions and 12 deletions
  1. +1
    -1
      bin/auth_ejabberd.php
  2. +1
    -1
      library/OAuth1.php
  3. +1
    -1
      mod/item.php
  4. +1
    -1
      mod/photos.php
  5. +1
    -1
      mod/videos.php
  6. +1
    -1
      src/Model/Attach.php
  7. +1
    -1
      src/Model/Photo.php
  8. +1
    -1
      src/Module/Profile/Status.php
  9. +1
    -1
      src/Object/Thread.php
  10. +2
    -1
      src/Security/ExAuth.php
  11. +1
    -0
      src/Security/FKOAuth1.php
  12. +1
    -1
      src/Security/FKOAuthDataStore.php
  13. +1
    -1
      src/Security/Security.php

+ 1
- 1
bin/auth_ejabberd.php View File

@@ -58,7 +58,7 @@ if (php_sapi_name() !== 'cli') {

use Dice\Dice;
use Friendica\App\Mode;
use Friendica\Util\ExAuth;
use Friendica\Security\ExAuth;
use Psr\Log\LoggerInterface;

if (sizeof($_SERVER["argv"]) == 0) {


+ 1
- 1
library/OAuth1.php View File

@@ -4,7 +4,7 @@
/* Generic exception class
*/

use Friendica\Network\FKOAuthDataStore;
use Friendica\Security\FKOAuthDataStore;

if (!class_exists('OAuthException', false)) {
class OAuthException extends Exception


+ 1
- 1
mod/item.php View File

@@ -54,7 +54,7 @@ use Friendica\Object\EMail\ItemCCEMail;
use Friendica\Protocol\Activity;
use Friendica\Protocol\Diaspora;
use Friendica\Util\DateTimeFormat;
use Friendica\Util\Security;
use Friendica\Security\Security;
use Friendica\Util\Strings;
use Friendica\Worker\Delivery;



+ 1
- 1
mod/photos.php View File

@@ -47,7 +47,7 @@ use Friendica\Util\Crypto;
use Friendica\Util\DateTimeFormat;
use Friendica\Util\Images;
use Friendica\Util\Map;
use Friendica\Util\Security;
use Friendica\Security\Security;
use Friendica\Util\Strings;
use Friendica\Util\Temporal;
use Friendica\Util\XML;


+ 1
- 1
mod/videos.php View File

@@ -33,7 +33,7 @@ use Friendica\Model\Item;
use Friendica\Model\Profile;
use Friendica\Model\User;
use Friendica\Module\BaseProfile;
use Friendica\Util\Security;
use Friendica\Security\Security;

function videos_init(App $a)
{


+ 1
- 1
src/Model/Attach.php View File

@@ -28,7 +28,7 @@ use Friendica\DI;
use Friendica\Object\Image;
use Friendica\Util\DateTimeFormat;
use Friendica\Util\Mimetype;
use Friendica\Util\Security;
use Friendica\Security\Security;

/**
* Class to handle attach dabatase table


+ 1
- 1
src/Model/Photo.php View File

@@ -31,7 +31,7 @@ use Friendica\Model\Storage\SystemResource;
use Friendica\Object\Image;
use Friendica\Util\DateTimeFormat;
use Friendica\Util\Images;
use Friendica\Util\Security;
use Friendica\Security\Security;
use Friendica\Util\Strings;

require_once "include/dba.php";


+ 1
- 1
src/Module/Profile/Status.php View File

@@ -36,7 +36,7 @@ use Friendica\Module\BaseProfile;
use Friendica\Module\Security\Login;
use Friendica\Network\HTTPException;
use Friendica\Util\DateTimeFormat;
use Friendica\Util\Security;
use Friendica\Security\Security;
use Friendica\Util\Strings;
use Friendica\Util\XML;



+ 1
- 1
src/Object/Thread.php View File

@@ -25,7 +25,7 @@ use Friendica\Core\Logger;
use Friendica\Core\Protocol;
use Friendica\DI;
use Friendica\Protocol\Activity;
use Friendica\Util\Security;
use Friendica\Security\Security;

/**
* A list of threads


src/Util/ExAuth.php → src/Security/ExAuth.php View File

@@ -32,7 +32,7 @@
*
*/

namespace Friendica\Util;
namespace Friendica\Security;

use Exception;
use Friendica\App;
@@ -42,6 +42,7 @@ use Friendica\Database\Database;
use Friendica\DI;
use Friendica\Model\User;
use Friendica\Network\HTTPException;
use Friendica\Util\PidFile;

class ExAuth
{

src/Network/FKOAuth1.php → src/Security/FKOAuth1.php View File

@@ -24,6 +24,7 @@ namespace Friendica\Network;
use Friendica\Core\Logger;
use Friendica\Database\DBA;
use Friendica\DI;
use Friendica\Security\FKOAuthDataStore;
use OAuthServer;
use OAuthSignatureMethod_HMAC_SHA1;
use OAuthSignatureMethod_PLAINTEXT;

src/Network/FKOAuthDataStore.php → src/Security/FKOAuthDataStore.php View File

@@ -19,7 +19,7 @@
*
*/

namespace Friendica\Network;
namespace Friendica\Security;

use Friendica\Core\Logger;
use Friendica\Database\DBA;

src/Util/Security.php → src/Security/Security.php View File

@@ -19,7 +19,7 @@
*
*/

namespace Friendica\Util;
namespace Friendica\Security;

use Friendica\Database\DBA;
use Friendica\Model\Contact;

Loading…
Cancel
Save