-
Notifications
You must be signed in to change notification settings - Fork 479
Apple provider invalid_client #1305
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Same issue Client error: `POST https://appleid.apple.com/auth/token` resulted in a `400 Bad Request` response:
{"error":"invalid_client"} Also, it should be a GET request but doesn't work with GET request as it shows |
@xcode-it , my initial assumption was incorrect. In my case, the issue was related to the use of the |
@xcode-it Tks for the tip, with your comment I was able to search and find a solution. I had the same problem, in the past, i was created a token using the rb script, now I changed to a dinamyc and automatic way to generate the apple tokens , I used this article |
I have created a PR for this: #1019 |
Uh oh!
There was an error while loading. Please reload this page.
When I try to use:
Socialite::driver('apple')->stateless()->user()
inside the callback function, I encounter an error: invalid_client.
The root cause is in the method:
$response = $this->getAccessTokenResponse($this->getCode());
This method makes a Guzzle POST request to the /auth/token endpoint without including the required header 'Content-Type: application/x-www-form-urlencoded'. However, this header is required for the endpoint to process the request correctly.
The text was updated successfully, but these errors were encountered: