Hi I am trying to verify the apple auth credentials provided by the client-side application, on the server-side, I am getting these fields from the client: authorizationCode
, identityToken
along with a lot of other fields.
I've tried reading a lot of blogs but none of them exactly mentions these fields. what is the easiest way to verify and get user details by using these fields to some apple API
I've done that for Google, where the client passes the access token to backend and using https://www.googleapis.com/oauth2/v3/tokeninfo?id_token=YourToken
we can verify the token and get user details.
Please suggest some similar way for apple. Thanks. I am using ROR, in case that helps.
Finally, I was able to figure out how to verify the access token received from the client-side. Apple does not provide any API for validating access-token, I highly recommend this blog It explains the whole Process quite neatly. This is the ruby code link for the same.