mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Apple OAuth
This commit is contained in:
parent
b487ac8c0c
commit
c7b5148e64
@ -344,11 +344,11 @@ nlog($token);
|
|||||||
|
|
||||||
$response = Http::withHeaders(["Content-Type" => "application/x-www-form-urlencoded"])
|
$response = Http::withHeaders(["Content-Type" => "application/x-www-form-urlencoded"])
|
||||||
->post("https://appleid.apple.com/auth/oauth2/token", [
|
->post("https://appleid.apple.com/auth/oauth2/token", [
|
||||||
'grant_type' => 'authorization_code',
|
"grant_type" => "authorization_code",
|
||||||
'code' => $token,
|
"code" => $token,
|
||||||
'redirect_url' => config('ninja.ninja_apple_redirect_url'),
|
"redirect_uri" => config('ninja.ninja_apple_redirect_url'),
|
||||||
'client_id' => config('ninja.ninja_apple_client_id'),
|
"client_id" => config('ninja.ninja_apple_client_id'),
|
||||||
'client_secret' => config('ninja.ninja_apple_client_secret'),
|
"client_secret" => config('ninja.ninja_apple_client_secret'),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
nlog($response->json());
|
nlog($response->json());
|
||||||
|
Loading…
Reference in New Issue
Block a user