I have a Java application and a GAE application, that sends C2DM messages to Android devices.
Now I would like to make the users of the java application able to sign in via their Google accounts to the GAE application. Am I correct, that I need to use oauth to realize this?
A litte bit of background:
+-----------+ +----------+
| JAVA App | send Message to ---> | GAE App |
+-----------+ +----------+
^ |
| Notify Client |
---------------------------- <User is allowed to send>
|
|
[YES] ---> Start delivering C2DMessage
I hope my great ASCII picture make it easier to understand ;)
Somehow I need to allow the user to login in the java application with their google credentials and if I send a message to the server the user data is being sent with the message to the server.
I do not really have an idea how to do this. It would be great, if you could tell me, wheter I am on the right or wrong track. I would be really glad for any suggestions.
Thanks, Mark