mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-01 00:24:36 -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', [
|
$response = Http::withHeaders('Content-Type:' => 'application/x-www-form-urlencoded')
|
||||||
// 'grant_type' => 'authorization_code',
|
->post('https://appleid.apple.com/auth/token', [
|
||||||
// 'code' => $token,
|
'grant_type' => 'authorization_code',
|
||||||
// 'redirect_uri' => config('ninja.ninja_apple_redirect_url'),
|
'code' => $token,
|
||||||
// 'client_id' => config('ninja.ninja_apple_client_id'),
|
'redirect_uri' => config('ninja.ninja_apple_redirect_url'),
|
||||||
// 'client_secret' => config('ninja.ninja_apple_client_secret'),
|
'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);
|
return $this->handleSocialiteLogin('apple', $token);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user