I’m writing application which consists of server side on Google App Engine (Java) and client side on Android. They communicate using RESTful web service.
And I really confused with authentication in this application.
How I can implement authentication on Client side so:
- User authenticated on client side, I can check if he logged in.
- User authenticated on Server side (server side needs to extract some data from FB)
- Client and server can communicate (client authenticated on server side)
Maybe you could pass to the server the authentication token that you get from FB on the client side? Then you could use UrlFetch on the server side to make calls to FB API. (I don’t know if it’s safe)
I created GAE-GWT-FB stack, so it’s a bit different, but if you want to take a look it’s here GWT-GAE-FB