From 907de3e95f7c8bc916803dd952ccb2e80a31436c Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Mon, 13 Jan 2020 19:48:47 +0530 Subject: [PATCH] chore: sanitisation of BitBucket Adapter --- src/Auth/OAuth/Amazon.php | 6 ++++-- src/Auth/OAuth/Bitbucket.php | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Auth/OAuth/Amazon.php b/src/Auth/OAuth/Amazon.php index d249d34214..3e187a5f07 100644 --- a/src/Auth/OAuth/Amazon.php +++ b/src/Auth/OAuth/Amazon.php @@ -18,8 +18,10 @@ class Amazon extends OAuth /** * @var array */ - protected $requiredScope = []; - + protected $requiredScope = [ + "profile" + ]; + /** * @return string */ diff --git a/src/Auth/OAuth/Bitbucket.php b/src/Auth/OAuth/Bitbucket.php index 377d9a5142..4dd1128cac 100644 --- a/src/Auth/OAuth/Bitbucket.php +++ b/src/Auth/OAuth/Bitbucket.php @@ -36,7 +36,7 @@ class Bitbucket extends OAuth $this->addScope($item); } - return 'https://bitbucket.org/site/oauth2/authorize?' .http_build_query([ + return 'https://bitbucket.org/site/oauth2/authorize?'.http_build_query([ 'response_type' => 'code', 'client_id' => $this->appID, 'scope' => implode(' ', $this->getScopes()),