【发布时间】:2010-06-05 16:57:00
【问题描述】:
我最近尝试将我的应用引擎应用切换为使用 openID,但我在使用 remote_api 进行身份验证时遇到了问题。 remote_api 的旧身份验证机制似乎不起作用(这是有道理的) - 我得到一个 'urllib2.HTTPError: HTTP Error 302: Found',我认为这是 appengine 将我重定向到我的 openid 登录页面设置。
我想我遗漏了一些相当明显的东西。目前我的 remote_api 脚本中包含以下内容 -
remote_api_stub.ConfigureRemoteDatastore(app_id=app_id, path='/remote_api', auth_func=auth_func, servername=host, secure=secure)
auth_func 在哪里
def auth_func():
return raw_input('Username:'), getpass.getpass('Password:')
我需要为 remote_api 提供什么想法?我想bulkloader也会遇到类似的问题。干杯,
科林
【问题讨论】: