如何在Google App Engine上进行身份验证

[英]How to Authenticate at Google App Engine


I'm trying to authenticate an application GAE by webservice.

我正在尝试通过webservice对应用程序GAE进行身份验证。

My steps are:

我的步骤是:

  1. Take the token - OK

    拿出代币 - 好的

  2. Authenticate an application at GAE.

    在GAE验证应用程序。

This way:

GET http://myapp.com/_ah/login?continue=http://myapp.com/&auth=tokenIsHere works fine.

获取http://myapp.com/_ah/login?continue=http://myapp.com/&auth=tokenIsHere正常工作。

But when I try to make a new request

但是当我尝试提出新的请求时

GET http://www.myapp.com/api/list/&auth=tokenIsHere .. 401 Unauthorized.

获取http://www.myapp.com/api/list/&auth=tokenIsHere .. 401未经授权。

But .. if I GET this way, it works: http://myapp.com/_ah/login?continue=http://www.myapp.com/api/list/&auth=tokenIsHere

但是..如果我这样做,它的工作原理:http://myapp.com/_ah/login?continue = http://www.myapp.com/api/list/&auth=tokenIsHere

Which means that my token is correct, but my GAE authentication was unsuccessfully

这意味着我的令牌是正确的,但我的GAE身份验证失败了

Someone can tell me why?

有人可以告诉我为什么?

1 个解决方案

#1


0  

This post solved my problem: http://javagwt.blogspot.com/2009/12/authenticating-android-app-to-google.html

这篇文章解决了我的问题:http://javagwt.blogspot.com/2009/12/authenticating-android-app-to-google.html

智能推荐

注意!

本站翻译的文章,版权归属于本站,未经许可禁止转摘,转摘请注明本文地址:http://www.itdaan.com/blog/2011/06/16/720365a0f714fe62dfc74622c9e544fb.html



 
© 2014-2019 ITdaan.com 粤ICP备14056181号  

赞助商广告