mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Apple OAuth
This commit is contained in:
parent
9925214b31
commit
33e68ba9d5
@ -341,15 +341,16 @@ class LoginController extends BaseController
|
||||
|
||||
|
||||
|
||||
// $response = Http::post('https://appleid.apple.com/auth/token', [
|
||||
// 'grant_type' => 'authorization_code',
|
||||
// 'code' => $token,
|
||||
// 'redirect_uri' => config('ninja.ninja_apple_redirect_url'),
|
||||
// 'client_id' => config('ninja.ninja_apple_client_id'),
|
||||
// 'client_secret' => config('ninja.ninja_apple_client_secret'),
|
||||
// ]);
|
||||
$response = Http::withHeaders('Content-Type:' => 'application/x-www-form-urlencoded')
|
||||
->post('https://appleid.apple.com/auth/token', [
|
||||
'grant_type' => 'authorization_code',
|
||||
'code' => $token,
|
||||
'redirect_uri' => config('ninja.ninja_apple_redirect_url'),
|
||||
'client_id' => config('ninja.ninja_apple_client_id'),
|
||||
'client_secret' => config('ninja.ninja_apple_client_secret'),
|
||||
]);
|
||||
|
||||
// nlog($response);
|
||||
nlog($response);
|
||||
|
||||
return $this->handleSocialiteLogin('apple', $token);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user