App Engine remote_api with OpenID
Posted
by hawkettc
on Stack Overflow
See other posts from Stack Overflow
or by hawkettc
Published on 2010-06-05T16:57:00Z
Indexed on
2010/06/05
17:02 UTC
Read the original article
Hit count: 234
google-app-engine
|openid
Hi,
I've recently tried to switch my app engine app to using openID, but I'm having an issue authenticating with remote_api. The old authentication mechanism for remote_api doesn't seem to work (which makes sense) - I'm getting a 'urllib2.HTTPError: HTTP Error 302: Found', which I assume is appengine redirecting me to the openid login page I've set up.
I guess I'm missing something fairly obvious. Currently my remote_api script has the following in it -
remote_api_stub.ConfigureRemoteDatastore(app_id=app_id, path='/remote_api', auth_func=auth_func, servername=host, secure=secure)
where auth_func is
def auth_func():
return raw_input('Username:'), getpass.getpass('Password:')
Any ideas what I need to supply to remote_api? I guess similar issues would be encountered with bulkloader too. Cheers,
Colin
© Stack Overflow or respective owner