【发布时间】:2015-11-14 19:04:12
【问题描述】:
我发现自己需要登录谷歌才能使用远程 api,但是它需要电子邮件和密码来验证该过程。无论如何我可以隐藏它们并要求项目的其他贡献者(安全地)添加他们自己的?
from google.appengine.ext.remote_api import remote_api_stub
import database
import getpass
email = "gmail@gmail.com" #can't show this line
password = "password" #can't show this line
def auth_func():
return (email, password)
remote_api_stub.ConfigureRemoteApi(None, '/_ah/remote_api', auth_func,
'app.appspot.com')
【问题讨论】:
-
虽然不是直接复制,stackoverflow.com/q/2397822/3058609 可能会揭示其他开发人员如何处理 repos 中的敏感数据
标签: python