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.