1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Apple OAuth

This commit is contained in:
David Bomba 2022-07-13 16:19:27 +10:00
parent 577751cf6f
commit b487ac8c0c

View File

@ -342,8 +342,8 @@ class LoginController extends BaseController
nlog($token);
$response = Http::withHeaders(["Content-Type: application/x-www-form-urlencoded"])
->post("https://appleid.apple.com/auth/token", [
$response = Http::withHeaders(["Content-Type" => "application/x-www-form-urlencoded"])
->post("https://appleid.apple.com/auth/oauth2/token", [
'grant_type' => 'authorization_code',
'code' => $token,
'redirect_url' => config('ninja.ninja_apple_redirect_url'),