App Engine, appcfg and saving uploading credentials

前端 未结 4 1528
一生所求
一生所求 2021-01-19 02:40

On Linux, it seems that appcfg.py saves credentials when I use it to upload a new version of my application. However, this doesn\'t seem to happen OSX, and the password is a

4条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-19 03:14

    You can use the OAuth 2.0 feature of appcfg to avoid the need to enter your login and password. It is documented for Java, Python and Go.

    Instead of using your login and password to authenticate you, you will proceed once through an OAuth 2.0 grant flow in your web browser. The results of that grant will be cached for future pushes.

    To use this feature, just add one option to your appcfg command: --oauth2. For Java, it looks like this:

    $  appcfg.sh --oauth2 update ./web
    

提交回复
热议问题