title: Apple Sign In Web implementation. Not getting User Info
body: <p>We are implementing the Sign In with Apple functionality for web application. We are following the ReST based approach. The authorization call is working fine and we are getting the 'code' and 'state' values on the return request object. But I am not getting the customer info.</p>
  
  <p>Authorization end point : <a href="https://appleid.apple.com/auth/authorize" rel="noreferrer">https://appleid.apple.com/auth/authorize</a></p>
  
  <p>The user info section is completely missing on the apple doc. Is anyone know which endpoint to hit for getting the user info and what is the request format.</p>
  
  <p>I have tried the token API call from Apple and I'm getting the response as 'unsupported_grant_type' </p>
  
  <p>Endpoint : appleid.apple.com/auth/token</p>
  
  <p>Header : <code>svc.addHeader("Content-Type", "application/x-www-form-urlencoded");</code></p>
  
  <p>Body : </p>
  
  <pre><code>{'client_id' : client_id, 'client_secret_key' : client_secret_key,
  'grant_type' : grant_type, 'code' : code, 'redirect_uri' : redirect_uri}
  </code></pre>
  
  <p>grand_type value we set as 'authorization_code'. </p>
  
  <p>Response service=AppleSignInTokenService status=ERROR errorCode=400 errorMessage={"error":"unsupported_grant_type"} </p>
  
  <p>Please let me know where I'm going wrong.</p>