Skip to content

Commit 519db61

Browse files
vdbeltbarryvdh
authored andcommitted
Authentication fix for getting a REST gateway access token (thephpleague#201)
1 parent 18186c3 commit 519db61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Message/RestTokenRequest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function sendData($data)
3636
$this->getEndpoint(),
3737
array(
3838
'Accept' => 'application/json',
39-
'Authorization' => 'Bearer ' . base64_encode("{$this->getClientId()}:{$this->getSecret()}"),
39+
'Authorization' => 'Basic ' . base64_encode("{$this->getClientId()}:{$this->getSecret()}"),
4040
),
4141
$body
4242
);

0 commit comments

Comments
 (0)