如何使用GAE Launcher中的OAuth2进行部署?

Nic*_*k T 7 google-app-engine

我正在尝试使用方便的启动器部署我的GAE应用程序,但由于我的帐户使用双因素身份验证,因此有点困难:

Password for <me>@gmail.com: Use an application-specific password 
instead of your regular account password.
See http://www.google.com/support/accounts/bin/answer.py?answer=185833
However, now the recommended way to log in is using OAuth2. See 
https://developers.google.com/appengine/docs/python/tools/uploadinganapp#oauth
Run Code Online (Sandbox Code Playgroud)

在上面的网页上,我被指示简单地将--oauth2选项放入appcfg.py:

appcfg.py --oauth2 update myapp/
Run Code Online (Sandbox Code Playgroud)

如果我在命令行,它会很简单,但如果我使用GAE启动器,我如何使用OAuth2?我看到添加命令行选项的唯一地方是在本地运行应用程序,而不是部署.

xlf*_*lfe 2

您需要创建一个应用程序特定的密码才能使其工作 - 这意味着您可以使用用户名/密码组合来部署应用程序。

  • 在部署时将应用程序特定密码放入密码框中不会阻止将来出现密码提示。事实上,它现在每次都会提示我——或者我是否遗漏了OP帖子中我不明白的东西?在下面的线程链接中,它说使用 OAuth2 而不是应用程序通行证...所以您的建议与 google-app-engine 标签宇宙中可用的内容相矛盾,您介意为我澄清一下吗?链接:http://stackoverflow.com/questions/5149914/how-to-save-my-user-account-and-password-in-google-app-engine-launcher (6认同)