开发者

Non-interactive user authentication on GAE

开发者 https://www.devze.com 2023-02-13 05:16 出处:网络
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.

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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消