From 8bb84aa826eca9ba1badabde54a8012c3de5004c Mon Sep 17 00:00:00 2001 From: Jay's Date: Tue, 20 Feb 2024 09:58:30 +0100 Subject: [PATCH] Fix the socialite provider after they pushed a revert (#178) * Fix socialite provider * styleCI * Fix provider again after socialite reverted their previous change --- src/Socialite/EveOnline/Provider.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Socialite/EveOnline/Provider.php b/src/Socialite/EveOnline/Provider.php index d8b6263..b32a33f 100644 --- a/src/Socialite/EveOnline/Provider.php +++ b/src/Socialite/EveOnline/Provider.php @@ -140,4 +140,15 @@ private function validateJwtToken(string $access_token): array return $validator->validateToken(config('eseye.esi.auth.client_id'), $access_token); } + + /** + * {@inheritDoc} + */ + protected function getTokenHeaders($code) + { + return [ + 'Accept' => 'application/json', + 'Authorization' => 'Basic ' . base64_encode($this->clientId . ':' . $this->clientSecret), + ]; + } }