ereOn
ereOn

Reputation: 55736

Non-interactive user authentication on GAE

I'm planning to start my first project using GAE (Google App Engine).

I would like to create a software that is web-service oriented and works with the google authentication mecanisms.

However, as I understand it, the code sample provided in the linked page redirects the user to a login page.

I would like to authenticate a user without any web-based user interaction.

  1. The user launches a local executable. Something like: authenticate.exe mylogin mypassword
  2. authenticate.exe communicates the login and password to the GAE application using a web-service based communication.
  3. The GAE application tries to authenticate the user and returns the result to authenticate.exe

Is there any official documentation on how to achieve that reliably ? Preferably in Java.

Thank you.

Upvotes: 0

Views: 389

Answers (1)

Peter Knego
Peter Knego

Reputation: 80340

Try using ClientLogin: http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html

The docs are for Google APIs but should work also with AppEngine URLs.

Here is an example of using ClientLogin with AppEngine. Code is Python but you should understand the flow: http://dalelane.co.uk/blog/?p=303

Upvotes: 1

Related Questions