Skip to content
This repository was archived by the owner on Dec 16, 2021. It is now read-only.

Commit 08d687d

Browse files
committed
Merge pull request #74 from jcoby/patch-1
Fix OAuth2 when custom arg_separator.output is defined
2 parents 463c554 + b1d3ae3 commit 08d687d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Ctct/Auth/CtctOAuth2.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function getAuthorizationUrl($server = true, $state = null)
4747
}
4848

4949
$url = Config::get('auth.base_url') . Config::get('auth.authorization_endpoint');
50-
return $url . '?' . http_build_query($params);
50+
return $url . '?' . http_build_query($params, '', '&');
5151
}
5252

5353
/**
@@ -66,7 +66,7 @@ public function getAccessToken($code)
6666
'redirect_uri' => $this->redirectUri
6767
);
6868

69-
$url = Config::get('auth.base_url') . Config::get('auth.token_endpoint') . '?' . http_build_query($params);
69+
$url = Config::get('auth.base_url') . Config::get('auth.token_endpoint') . '?' . http_build_query($params, '', '&');
7070

7171
$response = $this->restClient->post($url);
7272
$responseBody = json_decode($response->body, true);

0 commit comments

Comments
 (0)