Skip to content

Commit

Permalink
fix: Aikido - add basic auth header for token request (#1227)
Browse files Browse the repository at this point in the history
  • Loading branch information
olivernybroe authored Jul 1, 2024
1 parent 69fbd7e commit 97ffbcb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Aikido/Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,16 @@ protected function getUserByToken($token)
return json_decode((string) $response->getBody(), true);
}

/**
* {@inheritdoc}
*/
protected function getTokenHeaders($code): array
{
return array_merge(parent::getTokenHeaders($code), [
'Authorization' => 'Basic ' . base64_encode($this->clientId . ':' . $this->clientSecret),
]);
}

/**
* Map the raw user array to a Socialite User instance.
*
Expand Down

0 comments on commit 97ffbcb

Please sign in to comment.