mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 08:58:35 +00:00
chore: updated bitbucket adapter
This commit is contained in:
parent
7bd3b7ab46
commit
1e4fe08901
1 changed files with 7 additions and 5 deletions
|
|
@ -49,15 +49,17 @@ class Bitbucket extends OAuth
|
|||
{
|
||||
// Required as per Bitbucket Spec.
|
||||
$headers[] = 'Content-Type: application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
$accessToken = $this->request(
|
||||
'POST',
|
||||
'https://bitbucket.org/site/oauth2/access_token',
|
||||
$headers,
|
||||
'code=' . urlencode($code) .
|
||||
'&client_id=' . urlencode($this->appID) .
|
||||
'&client_secret=' . urlencode($this->appSecret).
|
||||
'&grant_type=authorization_code'
|
||||
http_build_query([
|
||||
'code' => $code,
|
||||
'client_id' => $this->appID,
|
||||
'client_secret' => $this->appSecret,
|
||||
'grant_type' => 'authorization_code'
|
||||
])
|
||||
);
|
||||
|
||||
$accessToken = json_decode($accessToken, true);
|
||||
|
|
|
|||
Loading…
Reference in a new issue