summaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/Lib/Auth
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-10 16:54:27 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-10 16:54:27 +0200
commit28f8eb5dba60a75f7e22debbdc26f1d3164deb18 (patch)
tree5bb8a104ec6b5af821b81cf392c69167deca4c0a /apps/files_external/lib/Lib/Auth
parent1584c9ae9c23d2a7915750ef9203cba0bcebf766 (diff)
downloadnextcloud-server-28f8eb5dba60a75f7e22debbdc26f1d3164deb18.tar.gz
nextcloud-server-28f8eb5dba60a75f7e22debbdc26f1d3164deb18.zip
Add visibility to all constants
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/files_external/lib/Lib/Auth')
-rw-r--r--apps/files_external/lib/Lib/Auth/AmazonS3/AccessKey.php2
-rw-r--r--apps/files_external/lib/Lib/Auth/AuthMechanism.php16
-rw-r--r--apps/files_external/lib/Lib/Auth/Password/GlobalAuth.php2
-rw-r--r--apps/files_external/lib/Lib/Auth/Password/LoginCredentials.php2
-rw-r--r--apps/files_external/lib/Lib/Auth/Password/UserProvided.php2
5 files changed, 12 insertions, 12 deletions
diff --git a/apps/files_external/lib/Lib/Auth/AmazonS3/AccessKey.php b/apps/files_external/lib/Lib/Auth/AmazonS3/AccessKey.php
index 4822789ba2b..cd72634e58a 100644
--- a/apps/files_external/lib/Lib/Auth/AmazonS3/AccessKey.php
+++ b/apps/files_external/lib/Lib/Auth/AmazonS3/AccessKey.php
@@ -32,7 +32,7 @@ use OCP\IL10N;
* Amazon S3 access key authentication
*/
class AccessKey extends AuthMechanism {
- const SCHEME_AMAZONS3_ACCESSKEY = 'amazons3_accesskey';
+ public const SCHEME_AMAZONS3_ACCESSKEY = 'amazons3_accesskey';
public function __construct(IL10N $l) {
$this
diff --git a/apps/files_external/lib/Lib/Auth/AuthMechanism.php b/apps/files_external/lib/Lib/Auth/AuthMechanism.php
index c13774ea5e0..5a693b75dbf 100644
--- a/apps/files_external/lib/Lib/Auth/AuthMechanism.php
+++ b/apps/files_external/lib/Lib/Auth/AuthMechanism.php
@@ -52,14 +52,14 @@ use OCA\Files_External\Lib\VisibilityTrait;
*/
class AuthMechanism implements \JsonSerializable {
/** Standard authentication schemes */
- const SCHEME_NULL = 'null';
- const SCHEME_BUILTIN = 'builtin';
- const SCHEME_PASSWORD = 'password';
- const SCHEME_OAUTH1 = 'oauth1';
- const SCHEME_OAUTH2 = 'oauth2';
- const SCHEME_PUBLICKEY = 'publickey';
- const SCHEME_OPENSTACK = 'openstack';
- const SCHEME_SMB = 'smb';
+ public const SCHEME_NULL = 'null';
+ public const SCHEME_BUILTIN = 'builtin';
+ public const SCHEME_PASSWORD = 'password';
+ public const SCHEME_OAUTH1 = 'oauth1';
+ public const SCHEME_OAUTH2 = 'oauth2';
+ public const SCHEME_PUBLICKEY = 'publickey';
+ public const SCHEME_OPENSTACK = 'openstack';
+ public const SCHEME_SMB = 'smb';
use VisibilityTrait;
use FrontendDefinitionTrait;
diff --git a/apps/files_external/lib/Lib/Auth/Password/GlobalAuth.php b/apps/files_external/lib/Lib/Auth/Password/GlobalAuth.php
index de6e34c4443..34b1b747bfe 100644
--- a/apps/files_external/lib/Lib/Auth/Password/GlobalAuth.php
+++ b/apps/files_external/lib/Lib/Auth/Password/GlobalAuth.php
@@ -36,7 +36,7 @@ use OCP\Security\ICredentialsManager;
* Global Username and Password
*/
class GlobalAuth extends AuthMechanism {
- const CREDENTIALS_IDENTIFIER = 'password::global';
+ public const CREDENTIALS_IDENTIFIER = 'password::global';
/** @var ICredentialsManager */
protected $credentialsManager;
diff --git a/apps/files_external/lib/Lib/Auth/Password/LoginCredentials.php b/apps/files_external/lib/Lib/Auth/Password/LoginCredentials.php
index 0165bb6d077..8d06707b2af 100644
--- a/apps/files_external/lib/Lib/Auth/Password/LoginCredentials.php
+++ b/apps/files_external/lib/Lib/Auth/Password/LoginCredentials.php
@@ -35,7 +35,7 @@ use OCP\Security\ICredentialsManager;
* Username and password from login credentials, saved in DB
*/
class LoginCredentials extends AuthMechanism {
- const CREDENTIALS_IDENTIFIER = 'password::logincredentials/credentials';
+ public const CREDENTIALS_IDENTIFIER = 'password::logincredentials/credentials';
/** @var ISession */
protected $session;
diff --git a/apps/files_external/lib/Lib/Auth/Password/UserProvided.php b/apps/files_external/lib/Lib/Auth/Password/UserProvided.php
index 552b707b544..429e0f1c261 100644
--- a/apps/files_external/lib/Lib/Auth/Password/UserProvided.php
+++ b/apps/files_external/lib/Lib/Auth/Password/UserProvided.php
@@ -37,7 +37,7 @@ use OCP\Security\ICredentialsManager;
* User provided Username and Password
*/
class UserProvided extends AuthMechanism implements IUserProvided {
- const CREDENTIALS_IDENTIFIER_PREFIX = 'password::userprovided/';
+ public const CREDENTIALS_IDENTIFIER_PREFIX = 'password::userprovided/';
/** @var ICredentialsManager */
protected $credentialsManager;