From f06b3e17fb4491ff8e03323a41f8ba15a4a569c3 Mon Sep 17 00:00:00 2001 From: Josh Cunningham Date: Mon, 16 Sep 2019 15:06:37 -0700 Subject: [PATCH] Deprecate TokenGenerator class --- src/API/Authentication.php | 4 ++-- src/API/Helpers/TokenGenerator.php | 2 +- src/API/Management/Jobs.php | 2 +- src/API/Management/Users.php | 2 +- src/API/Oauth2Client.php | 4 ++-- src/Auth0Api.php | 2 +- src/Auth0AuthApi.php | 2 +- src/Auth0JWT.php | 2 +- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/API/Authentication.php b/src/API/Authentication.php index 555edae2..776f8d3d 100644 --- a/src/API/Authentication.php +++ b/src/API/Authentication.php @@ -628,7 +628,7 @@ public function dbconnections_change_password( /** * Set an ApiClient for use in this object * - * @deprecated 5.4.0, not used. + * @deprecated 5.4.0, not used and no replacement provided. * * @return void * @@ -736,7 +736,7 @@ public function impersonate( /** * Authorize using an access token * - * @deprecated - 5.1.1, This feature is disabled by default for new tenants as of 8 June + * @deprecated 5.1.1, disabled by default for new tenants as of 8 June * 2017. Open the browser to do social authentication instead, which is * what Google and Facebook are recommending. * diff --git a/src/API/Helpers/TokenGenerator.php b/src/API/Helpers/TokenGenerator.php index c5623e3c..9c8625ed 100644 --- a/src/API/Helpers/TokenGenerator.php +++ b/src/API/Helpers/TokenGenerator.php @@ -7,7 +7,7 @@ * Class TokenGenerator. * Generates HS256 ID tokens. * - * TODO: Deprecate + * @deprecated 5.6.0, not used and no replacement provided. * * @package Auth0\SDK\API\Helpers */ diff --git a/src/API/Management/Jobs.php b/src/API/Management/Jobs.php index ac097d41..d02e1e7e 100644 --- a/src/API/Management/Jobs.php +++ b/src/API/Management/Jobs.php @@ -54,7 +54,7 @@ public function importUsers($file_path, $connection_id, $params = []) $request->addFormParam('send_completion_email', filter_var($params['send_completion_email'], FILTER_VALIDATE_BOOLEAN)); } - if (!empty($params['external_id'])) { + if (! empty($params['external_id'])) { $request->addFormParam('external_id', $params['external_id']); } diff --git a/src/API/Management/Users.php b/src/API/Management/Users.php index 0875cbc0..c685668b 100644 --- a/src/API/Management/Users.php +++ b/src/API/Management/Users.php @@ -526,7 +526,7 @@ public function invalidateBrowsers($user_id) /** * Wrapper for self::getAll(). * - * @deprecated 5.4.0, use $this->>getAll instead. + * @deprecated 5.4.0, use $this->getAll instead. * * @param array $params Search parameters to send. * diff --git a/src/API/Oauth2Client.php b/src/API/Oauth2Client.php index ae60726a..670bf629 100644 --- a/src/API/Oauth2Client.php +++ b/src/API/Oauth2Client.php @@ -11,7 +11,7 @@ /** * This class provides access to Auth0 Platform. * - * @deprecated - Deprecated in 5.2.1; use \Auth0\SDK\Auth0 instead. + * @deprecated 5.2.1, use \Auth0\SDK\Auth0 instead. * * @codeCoverageIgnore - Deprecated */ @@ -131,7 +131,7 @@ class Oauth2Client /** * BaseAuth0 Constructor. * - * @deprecated - Deprecated in 5.2.1; use \Auth0\SDK\Auth0 instead. + * @deprecated 5.2.1, use \Auth0\SDK\Auth0 instead. * * Configuration: * - domain (String) - Required. Should match your Auth0 domain diff --git a/src/Auth0Api.php b/src/Auth0Api.php index f3f6f172..909e1a01 100644 --- a/src/Auth0Api.php +++ b/src/Auth0Api.php @@ -4,7 +4,7 @@ /** * This class provides access to Auth0 Platform API. * - * @deprecated - Provided for bring backwards-compat and will be soon removed; use Auth0\SDK\API\Management instead. + * @deprecated 4.0.0, provided for bring backwards-compat and will be soon removed; use Auth0\SDK\API\Management instead. * * @codeCoverageIgnore - Deprecated */ diff --git a/src/Auth0AuthApi.php b/src/Auth0AuthApi.php index 58720245..1a2f9c58 100644 --- a/src/Auth0AuthApi.php +++ b/src/Auth0AuthApi.php @@ -4,7 +4,7 @@ /** * This class provides access to Auth0 Platform auth API. * - * @deprecated - Provided for bring backwards-compat and will be soon removed; use Auth0\SDK\API\Authentication instead + * @deprecated 4.0.0, provided for bring backwards-compat and will be soon removed; use Auth0\SDK\API\Authentication instead * * @codeCoverageIgnore - Deprecated */ diff --git a/src/Auth0JWT.php b/src/Auth0JWT.php index 64fa5da4..19d5ea2d 100644 --- a/src/Auth0JWT.php +++ b/src/Auth0JWT.php @@ -5,7 +5,7 @@ /** * This class provides access to Auth0 JWT decoder. * - * @deprecated - Provided for bring backwards-compat and will be soon removed; use Auth0\SDK\JWTVerifier instead. + * @deprecated 4.0.0, provided for bring backwards-compat and will be soon removed; use Auth0\SDK\JWTVerifier instead. * * @codeCoverageIgnore - Deprecated */