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



如何在ASP.NET上进行身份验证 - How to authenticate on ASP.NET 使用App Engine凭据进行身份验证,以使用OpenAPI与Google Cloud Endpoints上的应用进行通信 - Authenticate using App Engine credentials to talk to an app on Google Cloud Endpoints with OpenAPI Google App Engine:使用ID和密码进行端点身份验证 - Google App Engine: Endpoints authentication with ID and password 使用电话号码在Firebase上进行身份验证 - Authenticate on Firebase with phone number 如何在Rails REST API应用程序中使用Devise进行身份验证? - How do I authenticate using Devise in a Rails REST API App? 从控制台应用程序在ASP.Net Forms Authorization网站上进行身份验证 - Authenticate on an ASP.Net Forms Authorization website from a console app 如何在Google应用引擎中安全存储外部身份验证凭据 - How to securely store external auth credentials in google app engine 如何将firebase身份验证与Google App引擎端点集成 - How to integrate firebase authentication with google app engine endpoints 应用引擎端点使用Google Identity Toolkit进行身份验证 - App engine endpoints auth with Google Identity Toolkit 使用App Engine Flexible(Node.js)进行Google Cloud Endpoints自定义身份验证 - Google Cloud Endpoints custom authentication with App Engine Flexible (Node.js)
 
粤ICP备14056181号  © 2014-2020 ITdaan.com