mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
Manual quality improvmenets
This commit is contained in:
1 parent
1f18e16310
commit
d25dac7d60
42 files changed
+102
-261
No files matched your search
@@ -127,14 +127,12 @@ use Appwrite\Utopia\Response\Model\OAuth2Linkedin;
|
||||
use Appwrite\Utopia\Response\Model\OAuth2Notion;
|
||||
use Appwrite\Utopia\Response\Model\OAuth2Oidc;
|
||||
use Appwrite\Utopia\Response\Model\OAuth2Paypal;
|
||||
use Appwrite\Utopia\Response\Model\OAuth2PaypalSandbox;
|
||||
use Appwrite\Utopia\Response\Model\OAuth2Podio;
|
||||
use Appwrite\Utopia\Response\Model\OAuth2Salesforce;
|
||||
use Appwrite\Utopia\Response\Model\OAuth2Slack;
|
||||
use Appwrite\Utopia\Response\Model\OAuth2Spotify;
|
||||
use Appwrite\Utopia\Response\Model\OAuth2Stripe;
|
||||
use Appwrite\Utopia\Response\Model\OAuth2Tradeshift;
|
||||
use Appwrite\Utopia\Response\Model\OAuth2TradeshiftBox;
|
||||
use Appwrite\Utopia\Response\Model\OAuth2Twitch;
|
||||
use Appwrite\Utopia\Response\Model\OAuth2WordPress;
|
||||
use Appwrite\Utopia\Response\Model\OAuth2X;
|
||||
@@ -416,9 +414,7 @@ Response::setModel(new OAuth2Amazon());
|
||||
Response::setModel(new OAuth2Etsy());
|
||||
Response::setModel(new OAuth2Facebook());
|
||||
Response::setModel(new OAuth2Tradeshift());
|
||||
Response::setModel(new OAuth2TradeshiftBox());
|
||||
Response::setModel(new OAuth2Paypal());
|
||||
Response::setModel(new OAuth2PaypalSandbox());
|
||||
Response::setModel(new OAuth2Gitlab());
|
||||
Response::setModel(new OAuth2Authentik());
|
||||
Response::setModel(new OAuth2Auth0());
|
||||
|
||||
@@ -35,11 +35,11 @@ class Update extends Base
|
||||
|
||||
public static function getClientIdDescription(): string
|
||||
{
|
||||
return 'Client ID of Amazon OAuth2 app. For example: amzn1.application-oa2-client.87400c00000000000000000000063d5b2';
|
||||
return '\'Client ID\' of Amazon OAuth2 app. For example: amzn1.application-oa2-client.87400c00000000000000000000063d5b2';
|
||||
}
|
||||
|
||||
public static function getClientSecretDescription(): string
|
||||
{
|
||||
return 'Client Secret of Amazon OAuth2 app. For example: 79ffe4000000000000000000000000000000000000000000000000000002de55';
|
||||
return '\'Client Secret\' of Amazon OAuth2 app. For example: 79ffe4000000000000000000000000000000000000000000000000000002de55';
|
||||
}
|
||||
}
|
||||
@@ -50,7 +50,7 @@ class Update extends Base
|
||||
|
||||
public static function getClientIdDescription(): string
|
||||
{
|
||||
return 'Service ID of Apple OAuth2 app. For example: ip.appwrite.app.web';
|
||||
return '\'Service ID\' of Apple OAuth2 app. For example: ip.appwrite.app.web';
|
||||
}
|
||||
|
||||
public static function getClientSecretDescription(): string
|
||||
@@ -88,8 +88,8 @@ class Update extends Base
|
||||
],
|
||||
))
|
||||
->param(static::getClientIdParamName(), null, new Nullable(new Text(256, 0)), static::getClientIdDescription(), optional: true)
|
||||
->param('keyId', null, new Nullable(new Text(256, 0)), 'Key ID of Apple OAuth2 app. For example: P4000000N8', optional: true)
|
||||
->param('teamId', null, new Nullable(new Text(256, 0)), 'Team ID of Apple OAuth2 app. For example: D4000000R6', optional: true)
|
||||
->param('keyId', null, new Nullable(new Text(256, 0)), '\'Key ID\' of Apple OAuth2 app. For example: P4000000N8', optional: true)
|
||||
->param('teamId', null, new Nullable(new Text(256, 0)), '\'Team ID\' of Apple OAuth2 app. For example: D4000000R6', optional: true)
|
||||
->param('p8File', null, new Nullable(new Text(4096, 0)), 'Contents of the Apple OAuth2 app .p8 private key file. The secret key wrapped by the PEM markers is 200 characters long. For example: -----BEGIN PRIVATE KEY-----MIGTAg...jy2Xbna-----END PRIVATE KEY-----', optional: true)
|
||||
->param('enabled', null, new Nullable(new Boolean()), 'OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.', true)
|
||||
->inject('response')
|
||||
|
||||
@@ -45,12 +45,12 @@ class Update extends Base
|
||||
|
||||
public static function getClientIdDescription(): string
|
||||
{
|
||||
return 'Client ID of Auth0 OAuth2 app. For example: OaOkIA000000000000000000005KLSYq';
|
||||
return '\'Client ID\' of Auth0 OAuth2 app. For example: OaOkIA000000000000000000005KLSYq';
|
||||
}
|
||||
|
||||
public static function getClientSecretDescription(): string
|
||||
{
|
||||
return 'Client Secret of Auth0 OAuth2 app. For example: zXz0000-00000000000000000000000000000-00000000000000000000PJafnF';
|
||||
return '\'Client Secret\' of Auth0 OAuth2 app. For example: zXz0000-00000000000000000000000000000-00000000000000000000PJafnF';
|
||||
}
|
||||
|
||||
public function __construct()
|
||||
|
||||
@@ -45,12 +45,12 @@ class Update extends Base
|
||||
|
||||
public static function getClientIdDescription(): string
|
||||
{
|
||||
return 'Client ID of Authentik OAuth2 app. For example: dTKOPa0000000000000000000000000000e7G8hv';
|
||||
return '\'Client ID\' of Authentik OAuth2 app. For example: dTKOPa0000000000000000000000000000e7G8hv';
|
||||
}
|
||||
|
||||
public static function getClientSecretDescription(): string
|
||||
{
|
||||
return 'Client Secret of Authentik OAuth2 app. For example: ntQadq000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000Hp5WK';
|
||||
return '\'Client Secret\' of Authentik OAuth2 app. For example: ntQadq000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000Hp5WK';
|
||||
}
|
||||
|
||||
public function __construct()
|
||||
|
||||
@@ -35,11 +35,11 @@ class Update extends Base
|
||||
|
||||
public static function getClientIdDescription(): string
|
||||
{
|
||||
return 'client ID of Autodesk OAuth2 app. For example: 5zw90v00000000000000000000kVYXN7';
|
||||
return '\'client ID\' of Autodesk OAuth2 app. For example: 5zw90v00000000000000000000kVYXN7';
|
||||
}
|
||||
|
||||
public static function getClientSecretDescription(): string
|
||||
{
|
||||
return 'client secret of Autodesk OAuth2 app. For example: 7I000000000000MW';
|
||||
return '\'client secret\' of Autodesk OAuth2 app. For example: 7I000000000000MW';
|
||||
}
|
||||
}
|
||||
@@ -45,11 +45,11 @@ class Update extends Base
|
||||
|
||||
public static function getClientIdDescription(): string
|
||||
{
|
||||
return 'Key of Bitbucket OAuth2 app. For example: Knt70000000000ByRc';
|
||||
return '\'Key\' of Bitbucket OAuth2 app. For example: Knt70000000000ByRc';
|
||||
}
|
||||
|
||||
public static function getClientSecretDescription(): string
|
||||
{
|
||||
return 'Secret of Bitbucket OAuth2 app. For example: NMfLZJ00000000000000000000TLQdDx';
|
||||
return '\'Secret\' of Bitbucket OAuth2 app. For example: NMfLZJ00000000000000000000TLQdDx';
|
||||
}
|
||||
}
|
||||
@@ -35,11 +35,11 @@ class Update extends Base
|
||||
|
||||
public static function getClientIdDescription(): string
|
||||
{
|
||||
return 'Client ID of Bitly OAuth2 app. For example: d95151000000000000000000000000000067af9b';
|
||||
return '\'Client ID\' of Bitly OAuth2 app. For example: d95151000000000000000000000000000067af9b';
|
||||
}
|
||||
|
||||
public static function getClientSecretDescription(): string
|
||||
{
|
||||
return 'Client secret of Bitly OAuth2 app. For example: a13e250000000000000000000000000000d73095';
|
||||
return '\'Client Secret\' of Bitly OAuth2 app. For example: a13e250000000000000000000000000000d73095';
|
||||
}
|
||||
}
|
||||
@@ -35,11 +35,11 @@ class Update extends Base
|
||||
|
||||
public static function getClientIdDescription(): string
|
||||
{
|
||||
return 'Client ID of Box OAuth2 app. For example: deglcs00000000000000000000x2og6y';
|
||||
return '\'Client ID\' of Box OAuth2 app. For example: deglcs00000000000000000000x2og6y';
|
||||
}
|
||||
|
||||
public static function getClientSecretDescription(): string
|
||||
{
|
||||
return 'Client Secret of Box OAuth2 app. For example: OKM1f100000000000000000000eshEif';
|
||||
return '\'Client Secret\' of Box OAuth2 app. For example: OKM1f100000000000000000000eshEif';
|
||||
}
|
||||
}
|
||||
@@ -45,11 +45,11 @@ class Update extends Base
|
||||
|
||||
public static function getClientIdDescription(): string
|
||||
{
|
||||
return 'API key of Dailymotion OAuth2 app. For example: 07a9000000000000067f';
|
||||
return '\'API key\' of Dailymotion OAuth2 app. For example: 07a9000000000000067f';
|
||||
}
|
||||
|
||||
public static function getClientSecretDescription(): string
|
||||
{
|
||||
return 'API secret of Dailymotion OAuth2 app. For example: a399a90000000000000000000000000000d90639';
|
||||
return '\'API secret\' of Dailymotion OAuth2 app. For example: a399a90000000000000000000000000000d90639';
|
||||
}
|
||||
}
|
||||
@@ -35,11 +35,11 @@ class Update extends Base
|
||||
|
||||
public static function getClientIdDescription(): string
|
||||
{
|
||||
return 'Client ID of Discord OAuth2 app. For example: 950722000000343754';
|
||||
return '\'Client ID\' of Discord OAuth2 app. For example: 950722000000343754';
|
||||
}
|
||||
|
||||
public static function getClientSecretDescription(): string
|
||||
{
|
||||
return 'Client Secret of Discord OAuth2 app. For example: YmPXnM000000000000000000002zFg5D';
|
||||
return '\'Client Secret\' of Discord OAuth2 app. For example: YmPXnM000000000000000000002zFg5D';
|
||||
}
|
||||
}
|
||||
@@ -45,11 +45,11 @@ class Update extends Base
|
||||
|
||||
public static function getClientIdDescription(): string
|
||||
{
|
||||
return 'Public key, also known as API Key, of Disqus OAuth2 app. For example: cgegH70000000000000000000000000000000000000000000000000000Hr1nYX';
|
||||
return '\'Public key\', also known as \'API Key\', of Disqus OAuth2 app. For example: cgegH70000000000000000000000000000000000000000000000000000Hr1nYX';
|
||||
}
|
||||
|
||||
public static function getClientSecretDescription(): string
|
||||
{
|
||||
return 'Secret Key, also known as API Secret, of Disqus OAuth2 app. For example: W7Bykj00000000000000000000000000000000000000000000000000003o43w9';
|
||||
return '\'Secret Key\', also known as \'API Secret\', of Disqus OAuth2 app. For example: W7Bykj00000000000000000000000000000000000000000000000000003o43w9';
|
||||
}
|
||||
}
|
||||
@@ -45,11 +45,11 @@ class Update extends Base
|
||||
|
||||
public static function getClientIdDescription(): string
|
||||
{
|
||||
return 'App key of Dropbox OAuth2 app. For example: jl000000000009t';
|
||||
return '\'App key\' of Dropbox OAuth2 app. For example: jl000000000009t';
|
||||
}
|
||||
|
||||
public static function getClientSecretDescription(): string
|
||||
{
|
||||
return 'App secret of Dropbox OAuth2 app. For example: g200000000000vw';
|
||||
return '\'App secret\' of Dropbox OAuth2 app. For example: g200000000000vw';
|
||||
}
|
||||
}
|
||||
@@ -45,11 +45,11 @@ class Update extends Base
|
||||
|
||||
public static function getClientIdDescription(): string
|
||||
{
|
||||
return 'Keystring of Etsy OAuth2 app. For example: nsgzxh0000000000008j85a2';
|
||||
return '\'Keystring\' of Etsy OAuth2 app. For example: nsgzxh0000000000008j85a2';
|
||||
}
|
||||
|
||||
public static function getClientSecretDescription(): string
|
||||
{
|
||||
return 'Shared Secret of Etsy OAuth2 app. For example: tp000000ru';
|
||||
return '\'Shared Secret\' of Etsy OAuth2 app. For example: tp000000ru';
|
||||
}
|
||||
}
|
||||
@@ -45,11 +45,11 @@ class Update extends Base
|
||||
|
||||
public static function getClientIdDescription(): string
|
||||
{
|
||||
return 'App ID of Facebook OAuth2 app. For example: 260600000007694';
|
||||
return '\'App ID\' of Facebook OAuth2 app. For example: 260600000007694';
|
||||
}
|
||||
|
||||
public static function getClientSecretDescription(): string
|
||||
{
|
||||
return 'App secret of Facebook OAuth2 app. For example: 2d0b2800000000000000000000d38af4';
|
||||
return '\'App secret\' of Facebook OAuth2 app. For example: 2d0b2800000000000000000000d38af4';
|
||||
}
|
||||
}
|
||||
@@ -35,11 +35,11 @@ class Update extends Base
|
||||
|
||||
public static function getClientIdDescription(): string
|
||||
{
|
||||
return 'Client ID of Figma OAuth2 app. For example: byay5H0000000000VtiI40';
|
||||
return '\'Client ID\' of Figma OAuth2 app. For example: byay5H0000000000VtiI40';
|
||||
}
|
||||
|
||||
public static function getClientSecretDescription(): string
|
||||
{
|
||||
return 'Client Secret of Figma OAuth2 app. For example: yEpOYn0000000000000000004iIsU5';
|
||||
return '\'Client Secret\' of Figma OAuth2 app. For example: yEpOYn0000000000000000004iIsU5';
|
||||
}
|
||||
}
|
||||
@@ -35,11 +35,11 @@ class Update extends Base
|
||||
|
||||
public static function getClientIdDescription(): string
|
||||
{
|
||||
return 'Client ID of GitHub OAuth2 app, or App ID of GitHub generic app. For example: e4d87900000000540733';
|
||||
return '\'Client ID\' of GitHub OAuth2 app, or \'App ID\' of GitHub generic app. For example: e4d87900000000540733. Example of wrong value: 370006';
|
||||
}
|
||||
|
||||
public static function getClientSecretDescription(): string
|
||||
{
|
||||
return 'Client secret of GitHub OAuth2 app, or GitHub generic app. For example: 5e07c00000000000000000000000000000198bcc';
|
||||
return '\'Client secret\' of GitHub OAuth2 app, or GitHub generic app. For example: 5e07c00000000000000000000000000000198bcc';
|
||||
}
|
||||
}
|
||||
@@ -56,12 +56,12 @@ class Update extends Base
|
||||
|
||||
public static function getClientIdDescription(): string
|
||||
{
|
||||
return 'Application ID of GitLab OAuth2 app. For example: d41ffe0000000000000000000000000000000000000000000000000000d5e252';
|
||||
return '\'Application ID\' of GitLab OAuth2 app. For example: d41ffe0000000000000000000000000000000000000000000000000000d5e252';
|
||||
}
|
||||
|
||||
public static function getClientSecretDescription(): string
|
||||
{
|
||||
return 'Secret of GitLab OAuth2 app. For example: gloas-838cfa0000000000000000000000000000000000000000000000000000ecbb38';
|
||||
return '\'Secret\' of GitLab OAuth2 app. For example: gloas-838cfa0000000000000000000000000000000000000000000000000000ecbb38';
|
||||
}
|
||||
|
||||
public function __construct()
|
||||
|
||||
@@ -35,11 +35,11 @@ class Update extends Base
|
||||
|
||||
public static function getClientIdDescription(): string
|
||||
{
|
||||
return 'Client ID of Google OAuth2 app. For example: 120000000095-92ifjb00000000000000000000g7ijfb.apps.googleusercontent.com';
|
||||
return '\'Client ID\' of Google OAuth2 app. For example: 120000000095-92ifjb00000000000000000000g7ijfb.apps.googleusercontent.com';
|
||||
}
|
||||
|
||||
public static function getClientSecretDescription(): string
|
||||
{
|
||||
return 'Client secret of Google OAuth2 app. For example: GOCSPX-2k8gsR0000000000000000VNahJj';
|
||||
return '\'Client secret\' of Google OAuth2 app. For example: GOCSPX-2k8gsR0000000000000000VNahJj';
|
||||
}
|
||||
}
|
||||
@@ -40,11 +40,11 @@ class Update extends Base
|
||||
|
||||
public static function getClientIdDescription(): string
|
||||
{
|
||||
return 'Client ID of LinkedIn OAuth2 app. For example: 770000000000dv';
|
||||
return '\'Client ID\' of LinkedIn OAuth2 app. For example: 770000000000dv';
|
||||
}
|
||||
|
||||
public static function getClientSecretDescription(): string
|
||||
{
|
||||
return 'Primary Client Secret, also known as Secondary Client Secret, of LinkedIn OAuth2 app. For example: WPL_AP1.2Bf0000000000000';
|
||||
return '\'Primary Client Secret\' or \'Secondary Client Secret\', of LinkedIn OAuth2 app. For example: WPL_AP1.2Bf0000000000000./HtlYw==';
|
||||
}
|
||||
}
|
||||
@@ -45,11 +45,11 @@ class Update extends Base
|
||||
|
||||
public static function getClientIdDescription(): string
|
||||
{
|
||||
return 'OAuth Client ID of Notion OAuth2 app. For example: 341d8700-0000-0000-0000-000000446ee3';
|
||||
return '\'OAuth Client ID\' of Notion OAuth2 app. For example: 341d8700-0000-0000-0000-000000446ee3';
|
||||
}
|
||||
|
||||
public static function getClientSecretDescription(): string
|
||||
{
|
||||
return 'OAuth Client Secret of Notion OAuth2 app. For example: secret_dLUr4b000000000000000000000000000000lFHAa9';
|
||||
return '\'OAuth Client Secret\' of Notion OAuth2 app. For example: secret_dLUr4b000000000000000000000000000000lFHAa9';
|
||||
}
|
||||
}
|
||||
@@ -47,12 +47,12 @@ class Update extends Base
|
||||
|
||||
public static function getClientIdDescription(): string
|
||||
{
|
||||
return 'Client ID of OpenID Connect OAuth2 app. For example: qibI2x0000000000000000000000000006L2YFoG';
|
||||
return '\'Client ID\' of OpenID Connect OAuth2 app. For example: qibI2x0000000000000000000000000006L2YFoG';
|
||||
}
|
||||
|
||||
public static function getClientSecretDescription(): string
|
||||
{
|
||||
return 'Client Secret of OpenID Connect OAuth2 app. For example: Ah68ed000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003qpcHV';
|
||||
return '\'Client Secret\' of OpenID Connect OAuth2 app. For example: Ah68ed000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003qpcHV';
|
||||
}
|
||||
|
||||
public function __construct()
|
||||
|
||||
@@ -40,11 +40,11 @@ class Update extends Base
|
||||
|
||||
public static function getClientIdDescription(): string
|
||||
{
|
||||
return 'Client ID of PayPal OAuth2 app. For example: AdhIEG7-000000000000-0000000000000000000000000000000-0000000000000000000000-2pyB';
|
||||
return '\'Client ID\' of ' . static::getProviderLabel() . ' OAuth2 app. For example: AdhIEG7-000000000000-0000000000000000000000000000000-0000000000000000000000-2pyB';
|
||||
}
|
||||
|
||||
public static function getClientSecretDescription(): string
|
||||
{
|
||||
return 'Secret key 1, also known as Secret key 2, of PayPal OAuth2 app. For example: EH8KCXtew--000000000000000000000000000000000000000_C-1_5UP_000000000000000CB7KDp';
|
||||
return '\'Secret key 1\', or \'Secret key 2\', of ' . static::getProviderLabel() . ' OAuth2 app. For example: EH8KCXtew--000000000000000000000000000000000000000_C-1_5UP_000000000000000CB7KDp';
|
||||
}
|
||||
}
|
||||
@@ -3,10 +3,9 @@
|
||||
namespace Appwrite\Platform\Modules\Project\Http\Project\OAuth2\PaypalSandbox;
|
||||
|
||||
use Appwrite\Auth\OAuth2\PaypalSandbox;
|
||||
use Appwrite\Platform\Modules\Project\Http\Project\OAuth2\Base;
|
||||
use Appwrite\Utopia\Response;
|
||||
use Appwrite\Platform\Modules\Project\Http\Project\OAuth2\Paypal\Update as PaypalUpdate;
|
||||
|
||||
class Update extends Base
|
||||
class Update extends PaypalUpdate
|
||||
{
|
||||
public static function getProviderId(): string
|
||||
{
|
||||
@@ -27,24 +26,4 @@ class Update extends Base
|
||||
{
|
||||
return 'updateOAuth2PaypalSandbox';
|
||||
}
|
||||
|
||||
public static function getResponseModel(): string
|
||||
{
|
||||
return Response::MODEL_OAUTH2_PAYPAL_SANDBOX;
|
||||
}
|
||||
|
||||
public static function getClientSecretParamName(): string
|
||||
{
|
||||
return 'secretKey';
|
||||
}
|
||||
|
||||
public static function getClientIdDescription(): string
|
||||
{
|
||||
return 'Client ID of PayPal Sandbox OAuth2 app. For example: AdhIEG7-000000000000-0000000000000000000000000000000-0000000000000000000000-2pyB';
|
||||
}
|
||||
|
||||
public static function getClientSecretDescription(): string
|
||||
{
|
||||
return 'Secret key 1, also known as Secret key 2, of PayPal Sandbox OAuth2 app. For example: EH8KCXtew--000000000000000000000000000000000000000_C-1_5UP_000000000000000CB7KDp';
|
||||
}
|
||||
}
|
||||
@@ -35,11 +35,11 @@ class Update extends Base
|
||||
|
||||
public static function getClientIdDescription(): string
|
||||
{
|
||||
return 'Client ID of Podio OAuth2 app. For example: appwrite-oauth-test-app';
|
||||
return '\'Client ID\' of Podio OAuth2 app. For example: appwrite-o0000000st-app';
|
||||
}
|
||||
|
||||
public static function getClientSecretDescription(): string
|
||||
{
|
||||
return 'Client Secret of Podio OAuth2 app. For example: Rn247T0000000000000000000000000000000000000000000000000000W2zWTN';
|
||||
return '\'Client Secret\' of Podio OAuth2 app. For example: Rn247T0000000000000000000000000000000000000000000000000000W2zWTN';
|
||||
}
|
||||
}
|
||||
@@ -45,11 +45,11 @@ class Update extends Base
|
||||
|
||||
public static function getClientIdDescription(): string
|
||||
{
|
||||
return 'Consumer key of Salesforce OAuth2 app. For example: 3MVG9I0000000000000000000000000000000000000000000000000000000000000000000000000C5Aejq';
|
||||
return '\'Consumer key\' of Salesforce OAuth2 app. For example: 3MVG9I0000000000000000000000000000000000000000000000000000000000000000000000000C5Aejq';
|
||||
}
|
||||
|
||||
public static function getClientSecretDescription(): string
|
||||
{
|
||||
return 'Consumer secret of Salesforce OAuth2 app. For example: 3w000000000000e2';
|
||||
return '\'Consumer secret\' of Salesforce OAuth2 app. For example: 3w000000000000e2';
|
||||
}
|
||||
}
|
||||
@@ -35,11 +35,11 @@ class Update extends Base
|
||||
|
||||
public static function getClientIdDescription(): string
|
||||
{
|
||||
return 'Client ID of Slack OAuth2 app. For example: 23000000089.15000000000023';
|
||||
return '\'Client ID\' of Slack OAuth2 app. For example: 23000000089.15000000000023';
|
||||
}
|
||||
|
||||
public static function getClientSecretDescription(): string
|
||||
{
|
||||
return 'Client Secret of Slack OAuth2 app. For example: 81656000000000000000000000f3d2fd';
|
||||
return '\'Client Secret\' of Slack OAuth2 app. For example: 81656000000000000000000000f3d2fd';
|
||||
}
|
||||
}
|
||||
@@ -35,11 +35,11 @@ class Update extends Base
|
||||
|
||||
public static function getClientIdDescription(): string
|
||||
{
|
||||
return 'Client ID of Spotify OAuth2 app. For example: 6ec271000000000000000000009beace';
|
||||
return '\'Client ID\' of Spotify OAuth2 app. For example: 6ec271000000000000000000009beace';
|
||||
}
|
||||
|
||||
public static function getClientSecretDescription(): string
|
||||
{
|
||||
return 'Client secret of Spotify OAuth2 app. For example: db068a000000000000000000008b5b9f';
|
||||
return '\'Client secret\' of Spotify OAuth2 app. For example: db068a000000000000000000008b5b9f';
|
||||
}
|
||||
}
|
||||
@@ -40,11 +40,11 @@ class Update extends Base
|
||||
|
||||
public static function getClientIdDescription(): string
|
||||
{
|
||||
return 'client ID of Stripe OAuth2 app. For example: ca_UKibXX0000000000000000000006byvR';
|
||||
return '\'client ID\' of Stripe OAuth2 app. For example: ca_UKibXX0000000000000000000006byvR';
|
||||
}
|
||||
|
||||
public static function getClientSecretDescription(): string
|
||||
{
|
||||
return 'API Secret key of Stripe OAuth2 app. For example: sk_51SfOd000000000000000000000000000000000000000000000000000000000000000000000000000000000000000QGWYfp';
|
||||
return '\'API Secret key\' of Stripe OAuth2 app. For example: sk_51SfOd000000000000000000000000000000000000000000000000000000000000000000000000000000000000000QGWYfp';
|
||||
}
|
||||
}
|
||||
@@ -45,11 +45,11 @@ class Update extends Base
|
||||
|
||||
public static function getClientIdDescription(): string
|
||||
{
|
||||
return 'Oauth2 Client ID of Tradeshift OAuth2 app. For example: appwrite-test-org.appwrite-test-app';
|
||||
return '\'Oauth2 Client ID\' of ' . static::getProviderLabel() . ' OAuth2 app. For example: appwrite-tes00000.0000000000est-app';
|
||||
}
|
||||
|
||||
public static function getClientSecretDescription(): string
|
||||
{
|
||||
return 'Oauth2 Client secret of Tradeshift OAuth2 app. For example: 7cb52700-0000-0000-0000-000000ca5b83';
|
||||
return '\'Oauth2 Client secret\' of ' . static::getProviderLabel() . ' OAuth2 app. For example: 7cb52700-0000-0000-0000-000000ca5b83';
|
||||
}
|
||||
}
|
||||
@@ -1,55 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Appwrite\Platform\Modules\Project\Http\Project\OAuth2\TradeshiftBox;
|
||||
|
||||
use Appwrite\Auth\OAuth2\TradeshiftBox;
|
||||
use Appwrite\Platform\Modules\Project\Http\Project\OAuth2\Base;
|
||||
use Appwrite\Utopia\Response;
|
||||
|
||||
class Update extends Base
|
||||
{
|
||||
public static function getProviderId(): string
|
||||
{
|
||||
return 'tradeshiftBox';
|
||||
}
|
||||
|
||||
public static function getProviderClass(): string
|
||||
{
|
||||
return TradeshiftBox::class;
|
||||
}
|
||||
|
||||
public static function getProviderLabel(): string
|
||||
{
|
||||
return 'TradeshiftBox';
|
||||
}
|
||||
|
||||
public static function getProviderSDKMethod(): string
|
||||
{
|
||||
return 'updateOAuth2TradeshiftBox';
|
||||
}
|
||||
|
||||
public static function getResponseModel(): string
|
||||
{
|
||||
return Response::MODEL_OAUTH2_TRADESHIFT_BOX;
|
||||
}
|
||||
|
||||
public static function getClientIdParamName(): string
|
||||
{
|
||||
return 'oauth2ClientId';
|
||||
}
|
||||
|
||||
public static function getClientSecretParamName(): string
|
||||
{
|
||||
return 'oauth2ClientSecret';
|
||||
}
|
||||
|
||||
public static function getClientIdDescription(): string
|
||||
{
|
||||
return 'Oauth2 Client ID of Tradeshift Sandbox OAuth2 app. For example: appwrite-test-org.appwrite-test-app';
|
||||
}
|
||||
|
||||
public static function getClientSecretDescription(): string
|
||||
{
|
||||
return 'Oauth2 Client secret of Tradeshift Sandbox OAuth2 app. For example: 7cb52700-0000-0000-0000-000000ca5b83';
|
||||
}
|
||||
}
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
namespace Appwrite\Platform\Modules\Project\Http\Project\OAuth2\TradeshiftSandbox;
|
||||
|
||||
use Appwrite\Auth\OAuth2\TradeshiftBox;
|
||||
use Appwrite\Platform\Modules\Project\Http\Project\OAuth2\Tradeshift\Update as TradeshiftUpdate;
|
||||
|
||||
class Update extends TradeshiftUpdate
|
||||
{
|
||||
public static function getProviderId(): string
|
||||
{
|
||||
return 'tradeshiftSandbox';
|
||||
}
|
||||
|
||||
public static function getProviderClass(): string
|
||||
{
|
||||
return TradeshiftBox::class;
|
||||
}
|
||||
|
||||
public static function getProviderLabel(): string
|
||||
{
|
||||
return 'Tradeshift Sandbox';
|
||||
}
|
||||
|
||||
public static function getProviderSDKMethod(): string
|
||||
{
|
||||
return 'updateOAuth2TradeshiftSandbox';
|
||||
}
|
||||
}
|
||||
@@ -35,11 +35,11 @@ class Update extends Base
|
||||
|
||||
public static function getClientIdDescription(): string
|
||||
{
|
||||
return 'Client ID of Twitch OAuth2 app. For example: vvi0in000000000000000000ikmt9p';
|
||||
return '\'Client ID\' of Twitch OAuth2 app. For example: vvi0in000000000000000000ikmt9p';
|
||||
}
|
||||
|
||||
public static function getClientSecretDescription(): string
|
||||
{
|
||||
return 'Client Secret of Twitch OAuth2 app. For example: pmapue000000000000000000zylw3v';
|
||||
return '\'Client Secret\' of Twitch OAuth2 app. For example: pmapue000000000000000000zylw3v';
|
||||
}
|
||||
}
|
||||
@@ -35,11 +35,11 @@ class Update extends Base
|
||||
|
||||
public static function getClientIdDescription(): string
|
||||
{
|
||||
return 'Client ID of WordPress OAuth2 app. For example: 130005';
|
||||
return '\'Client ID\' of WordPress OAuth2 app. For example: 130005';
|
||||
}
|
||||
|
||||
public static function getClientSecretDescription(): string
|
||||
{
|
||||
return 'Client Secret of WordPress OAuth2 app. For example: PlBfJS0000000000000000000000000000000000000000000000000000EdUZJk';
|
||||
return '\'Client Secret\' of WordPress OAuth2 app. For example: PlBfJS0000000000000000000000000000000000000000000000000000EdUZJk';
|
||||
}
|
||||
}
|
||||
@@ -45,11 +45,11 @@ class Update extends Base
|
||||
|
||||
public static function getClientIdDescription(): string
|
||||
{
|
||||
return 'Customer Key of X OAuth2 app. For example: slzZV0000000000000NFLaWT';
|
||||
return '\'Customer Key\' of X OAuth2 app. For example: slzZV0000000000000NFLaWT';
|
||||
}
|
||||
|
||||
public static function getClientSecretDescription(): string
|
||||
{
|
||||
return 'Secret Key of X OAuth2 app. For example: tkEPkp00000000000000000000000000000000000000FTxbI9';
|
||||
return '\'Secret Key\' of X OAuth2 app. For example: tkEPkp00000000000000000000000000000000000000FTxbI9';
|
||||
}
|
||||
}
|
||||
@@ -35,11 +35,11 @@ class Update extends Base
|
||||
|
||||
public static function getClientIdDescription(): string
|
||||
{
|
||||
return 'Client ID, also known as Customer Key, of Yahoo OAuth2 app. For example: dj0yJm000000000000000000000000000000000000000000000000000000000000000000000000000000000000Z4PWRm';
|
||||
return '\'Client ID\', also known as \'Customer Key\', of Yahoo OAuth2 app. For example: dj0yJm000000000000000000000000000000000000000000000000000000000000000000000000000000000000Z4PWRm';
|
||||
}
|
||||
|
||||
public static function getClientSecretDescription(): string
|
||||
{
|
||||
return 'Client Secret, also known as Customer Secret, of Yahoo OAuth2 app. For example: cf978f0000000000000000000000000000c5e2e9';
|
||||
return '\'Client Secret\', also known as \'Customer Secret\', of Yahoo OAuth2 app. For example: cf978f0000000000000000000000000000c5e2e9';
|
||||
}
|
||||
}
|
||||
@@ -35,11 +35,11 @@ class Update extends Base
|
||||
|
||||
public static function getClientIdDescription(): string
|
||||
{
|
||||
return 'ClientID of Yandex OAuth2 app. For example: 6a8a6a0000000000000000000091483c';
|
||||
return '\'ClientID\' of Yandex OAuth2 app. For example: 6a8a6a0000000000000000000091483c';
|
||||
}
|
||||
|
||||
public static function getClientSecretDescription(): string
|
||||
{
|
||||
return 'Client secret of Yandex OAuth2 app. For example: bbf98500000000000000000000c75a63';
|
||||
return '\'Client secret\' of Yandex OAuth2 app. For example: bbf98500000000000000000000c75a63';
|
||||
}
|
||||
}
|
||||
@@ -35,11 +35,11 @@ class Update extends Base
|
||||
|
||||
public static function getClientIdDescription(): string
|
||||
{
|
||||
return 'Client ID of Zoho OAuth2 app. For example: 1000.83C178000000000000000000RPNX0B';
|
||||
return '\'Client ID\' of Zoho OAuth2 app. For example: 1000.83C178000000000000000000RPNX0B';
|
||||
}
|
||||
|
||||
public static function getClientSecretDescription(): string
|
||||
{
|
||||
return 'Client Secret of Zoho OAuth2 app. For example: fb5cac000000000000000000000000000000a68f6e';
|
||||
return '\'Client Secret\' of Zoho OAuth2 app. For example: fb5cac000000000000000000000000000000a68f6e';
|
||||
}
|
||||
}
|
||||
@@ -35,11 +35,11 @@ class Update extends Base
|
||||
|
||||
public static function getClientIdDescription(): string
|
||||
{
|
||||
return 'Client ID of Zoom OAuth2 app. For example: QMAC00000000000000w0AQ';
|
||||
return '\'Client ID\' of Zoom OAuth2 app. For example: QMAC00000000000000w0AQ';
|
||||
}
|
||||
|
||||
public static function getClientSecretDescription(): string
|
||||
{
|
||||
return 'Client Secret of Zoom OAuth2 app. For example: GAWsG4000000000000000000007U01ON';
|
||||
return '\'Client Secret\' of Zoom OAuth2 app. For example: GAWsG4000000000000000000007U01ON';
|
||||
}
|
||||
}
|
||||
@@ -307,9 +307,7 @@ class Response extends SwooleResponse
|
||||
public const MODEL_OAUTH2_ETSY = 'oAuth2Etsy';
|
||||
public const MODEL_OAUTH2_FACEBOOK = 'oAuth2Facebook';
|
||||
public const MODEL_OAUTH2_TRADESHIFT = 'oAuth2Tradeshift';
|
||||
public const MODEL_OAUTH2_TRADESHIFT_BOX = 'oAuth2TradeshiftBox';
|
||||
public const MODEL_OAUTH2_PAYPAL = 'oAuth2Paypal';
|
||||
public const MODEL_OAUTH2_PAYPAL_SANDBOX = 'oAuth2PaypalSandbox';
|
||||
public const MODEL_OAUTH2_GITLAB = 'oAuth2Gitlab';
|
||||
public const MODEL_OAUTH2_AUTHENTIK = 'oAuth2Authentik';
|
||||
public const MODEL_OAUTH2_AUTH0 = 'oAuth2Auth0';
|
||||
|
||||
@@ -1,53 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Appwrite\Utopia\Response\Model;
|
||||
|
||||
use Appwrite\Utopia\Response;
|
||||
|
||||
class OAuth2PaypalSandbox extends OAuth2Base
|
||||
{
|
||||
public function getProviderLabel(): string
|
||||
{
|
||||
return 'PayPal Sandbox';
|
||||
}
|
||||
|
||||
public function getClientIdExample(): string
|
||||
{
|
||||
return 'AdhIEG7-000000000000-0000000000000000000000000000000-0000000000000000000000-2pyB';
|
||||
}
|
||||
|
||||
public function getClientSecretExample(): string
|
||||
{
|
||||
return 'EH8KCXtew--000000000000000000000000000000000000000_C-1_5UP_000000000000000CB7KDp';
|
||||
}
|
||||
|
||||
public function getClientSecretFieldName(): string
|
||||
{
|
||||
return 'secretKey';
|
||||
}
|
||||
|
||||
public function getClientSecretLabel(): string
|
||||
{
|
||||
return 'secret key';
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Name
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getName(): string
|
||||
{
|
||||
return 'OAuth2PaypalSandbox';
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Type
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getType(): string
|
||||
{
|
||||
return Response::MODEL_OAUTH2_PAYPAL_SANDBOX;
|
||||
}
|
||||
}
|
||||
@@ -1,53 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Appwrite\Utopia\Response\Model;
|
||||
|
||||
use Appwrite\Utopia\Response;
|
||||
|
||||
class OAuth2TradeshiftBox extends OAuth2Base
|
||||
{
|
||||
public function getProviderLabel(): string
|
||||
{
|
||||
return 'Tradeshift Sandbox';
|
||||
}
|
||||
|
||||
public function getClientIdExample(): string
|
||||
{
|
||||
return 'appwrite-test-org.appwrite-test-app';
|
||||
}
|
||||
|
||||
public function getClientSecretExample(): string
|
||||
{
|
||||
return '7cb52700-0000-0000-0000-000000ca5b83';
|
||||
}
|
||||
|
||||
public function getClientIdFieldName(): string
|
||||
{
|
||||
return 'oauth2ClientId';
|
||||
}
|
||||
|
||||
public function getClientSecretFieldName(): string
|
||||
{
|
||||
return 'oauth2ClientSecret';
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Name
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getName(): string
|
||||
{
|
||||
return 'OAuth2TradeshiftBox';
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Type
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getType(): string
|
||||
{
|
||||
return Response::MODEL_OAUTH2_TRADESHIFT_BOX;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user