Reputation: 1116
I am trying to bulk upload data to the endpoint http://my-app.appspot.com/_ah/remoteapi where my-app is the ID of my app.
This is a part of my app.yaml
- url: /_ah/.*
script: google.appengine.ext.remote_api.handler.application
This is the command I use
appcfg.py upload_data --config_file=bulkloader.yaml --application whats-the-code --url=http://my-app.appspot.com/_ah/remote_api --filename=data/songs.xml --kind=Song --namespace=songs
The problem is that I am always prompted to enter the credential:
Please enter login credentials for my-app.appspot.com
Email: [email protected]
Password for [email protected]: ****
How can I config the app to by-pass the authentication? How can I designate the correct email/password to use in this case?
Upvotes: 0
Views: 77
Reputation: 3859
You can specify the email by --email and appcfg can take password from standard input by setting the switch --passin. once you have -passin you can pipe in a file containing your password like below
appcfg.py < your all other options> --email <your email> --passin < password.txt
password.txt will have your password and nothing else.
Upvotes: 0
Reputation: 6201
Use --oauth2
flag instead of user/password.
$ appcfg.py upload_data --oauth2 --config_file=bulkloader.yaml --application whats-the-code --url=http://my-app.appspot.com/_ah/remote_api --filename=data/songs.xml --kind=Song --namespace=songs
Upvotes: 1