如何在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


注意!

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



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