From 0e75f838c6ba161b76f67146a9a3e0f87215c7e5 Mon Sep 17 00:00:00 2001 From: Pyae Hein Date: Sun, 8 Dec 2019 00:31:30 +0630 Subject: [PATCH 1/3] added confidential method --- src/Passport/Client.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/Passport/Client.php b/src/Passport/Client.php index 9e07f07..3be09de 100644 --- a/src/Passport/Client.php +++ b/src/Passport/Client.php @@ -78,5 +78,15 @@ public function firstParty() public function skipsAuthorization() { return false; - } + } + + /** + * Determine if the client is a confidential client. + * + * @return bool + */ + public function confidential() + { + return ! empty($this->secret); + } } From dfe5ad68411a066531dc5b42408377045680a963 Mon Sep 17 00:00:00 2001 From: Pyae Hein Date: Sun, 8 Dec 2019 00:34:36 +0630 Subject: [PATCH 2/3] updated composer.json required package versions --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index fccff02..b29b522 100644 --- a/composer.json +++ b/composer.json @@ -13,9 +13,9 @@ "designmynight" ], "require": { - "illuminate/support": "^5.5", + "illuminate/support": "^5.5 || ^6.0", "jenssegers/mongodb": "3.3.* || 3.4.* || 3.5.* || 3.6.*", - "laravel/passport": "4.0.* || 5.0.* || 6.0.* || 7.0.* || 7.4.* || 7.5.*" + "laravel/passport": "4.0.* || 5.0.* || 6.0.* || 7.0.* || 7.4.* || 7.5.* || ^8.0" }, "autoload": { "psr-4": { From fda9c8a70f0045323b7ee509fdee17f0f131f981 Mon Sep 17 00:00:00 2001 From: Pyae Hein Date: Sun, 8 Dec 2019 00:37:52 +0630 Subject: [PATCH 3/3] update readme --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 5a3b12f..e333236 100644 --- a/README.md +++ b/README.md @@ -36,11 +36,11 @@ class User extends Authenticatable ### Laravel version Compatibility - Laravel | Passport | Package -:---------|:---------------------------|:---------- - 5.5.x | 4.0.x, 5.0.x, 6.0.x, 7.0.x | 1.1.x - 5.6.x | 4.0.x, 5.0.x, 6.0.x, 7.0.x | 1.1.x - 6.x | 4.0.x, 5.0.x, 6.0.x, 7.x | 1.2.x + Laravel | Passport | Package +:---------|:-----------------------------|:---------- + 5.5.x | 4.0.x, 5.0.x, 6.0.x, 7.0.x | 1.1.x + 5.6.x | 4.0.x, 5.0.x, 6.0.x, 7.0.x | 1.1.x + 6.x | 4.0.x, 5.0.x, 6.0.x, 7.x, 8.x| 1.2.x And add the service provider in `config/app.php`: