Invalid_Client

Hello we are trying to get apple signin work for our we are stuck in last step where we exchange the authorization code for an access token.

We followed this article https://developer.okta.com/blog/2019/06/04/what-the-heck-is-sign-in-with-apple and implemented Java slution, but we are not able to resolve last step to exchange authorization code for an access token wher we make POST call to

https://appleid.apple.com/auth/token, we tried several ways but every we are getting same response back "invalid_client". 


Request body:

{"grant_type":"authorization_code",

"code":"test",

"redirect_uri":"https://example.com",

"client_secret":"eyHrt*****"}


Can some one help to resolve this. I can provide additional details if you want.

and me too

anything happen with ur issue?
I think you need the client_id in this body as well, so something like this:

Code Block
{
"client_id":"com.domain.app", // App Bundle ID or Service ID
"grant_type":"authorization_code",
"code":"test",
"redirect_uri":"https://example.com",
"client_secret":"eyHrt*****"
}


More info can be found here.
Invalid_Client
 
 
Q