TheJohnny
TheJohnny

Reputation: 368

Google App Engine (GAE) response code and cookie on Android

I am trying to login my Android users with their Google accounts. I managed to get auth token from AccountManager. I also found some info that I need to use Google App Engine (so I did). I wrote some code (it is not the issue) and I have two questions. Maybe someone can help me.

  1. I was following this tutorial. I understand most of it. But should I write any server-side scripts? This tutorial doesn't mention any. Also according to this tutorial I should get code 302 response, which I get. Does it mean that authentication was positive? Or maybe now I have to do something?

  2. I am getting auth cookie (I think it is auth cookie) which contains very long value (I think over 500 symbols), expiration date and name. How should I use this cookie? Or maybe I don't have to use it? How can I use it to get user google account username? (I think there is that kind of value, different from email address)

Anyone can help?

Thanks in advance.

Upvotes: 1

Views: 563

Answers (1)

Shay Erlichmen
Shay Erlichmen

Reputation: 31928

  1. You don't need to write any server side scripts, all the server side stuff is already on every Google App Engine App.
  2. You need to pass the cookie when doing a request into App Engine.

Upvotes: 1

Related Questions