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