python - Google App Engine Remote API + OAuth -
i'm using gae remote api access data store of app. authentication gae made using remote_api_stub.configureremoteapi
authentication function returns user name , password.
is there way authenticating using access_token, example oauth or oauth 2.0?
there solution google accounts configured use 2-step verification.
at moment, seeing “badauthentication invalidsecondfactor" error thrown, not able login shell.
in order solve this, need app password authorizes app access account resources. follow tutorial , use generated password , username of admin of target app engine app credentials remote api.
update:
additionally, can take @ remote_api_stub.py file appengine sdk. you'll find family of methods called _configureremoteapiwith* (note leading underscore), such as:
- _configureremoteapiwithkeyfile
- _configureremoteapiwithcomputeenginecredential
- _configureremoteapiwithoauthcredentials
methods documented, please take @ docstrings. they'll let authenticate safer methods usual asp provided remote_api_stub.configureremoteapi().
Comments
Post a Comment