I'm writing an Android application which has a server connection. I would like to authenticate the app's user on the Android device and let the server know this has been done.
Assuming the user has:
- entered his/her credentials in the Android device for Google and Facebook (these are the ones I'm currently interested in)
- allowed the application to use the stored credentials on the Android device
- the application acquired the details (account user and token) from Android's
AccountManager
successfully
I would like now to correctly and securely let the server know the app on the device has authenticated the user. How can the server validate that this isn't bogus? Is there a way to validate a token with Google and Facebook on a server without requiring user interaction?
Thanks.