Hi Team,
We are implementig the Sign In with Apple functionality for web application. We are following the ReST based approach. The authorization call is working fine and weare getting the 'code' and 'state' values on the return request object. But I am not getting the custome info details.
The user info section is completely missing on the apple doc. Could anyone help me to understand which endpoint to hit for getting the user info and what is the request format.
I have tried the token API call from Apple and I'm getting the response as 'unsupported_grant_type'
Endpoint : appleid.apple.com/auth/token
Header : svc.addHeader("Content-Type", "application/x-www-form-urlencoded");
Body : {'client_id' : client_id, 'client_secret_key' : client_secret_key, 'grant_type' : grant_type, 'code' : code, 'redirect_uri' : redirect_uri}
We are setting the grand_type vallue as 'authorization_code'.
We are getting the Response as :
service=AppleSignInTokenService status=ERROR errorCode=400 errorMessage={"error":"unsupported_grant_type"}
Please let me know where I'm going wrong.
Regards,
Shekhar