Using Oauth to Connect a Java Application with a GAE Application

I have a Java application and a GAE application that sends C2DM messages to Android devices.

Now I want users of the java application to be able to log in through their Google accounts to the GAE application. Is it right that I have to use oauth to figure this out?

Small background:

+-----------+                        +----------+
| JAVA App  |  send Message to --->  | GAE App  | 
+-----------+                        +----------+
  ^                                         |
  | Notify Client                           |
  ---------------------------- <User is allowed to send>
                                            |
                                            |
                                          [YES] ---> Start delivering C2DMessage

I hope my wonderful ASCII image makes it easier to understand;)

Somehow I need to allow the user to enter the Java application with their google credentials, and if I send a message to the server, the user data will be sent with the message to the server.

I have no idea how to do this. It would be great if you could tell me that I am on the right or wrong path. I would be very happy for any suggestions.

,

+1
2

OAuth , ( ).

Java (desktop, web, mobile) OAuth, Auth API Google.

, Java, GAE, GAE OAuth.

, GAE OAuth 1.0, OAuth, . GAE OAuth Documentatio n.

Ikai , , OAuth GAE/Java.

GPE, Android- GAE, Google I/O

, .

+2

All Articles