I have a python script that connects to google drive and upload some files automatically.
The first time the application runs, it asks for a google account to use in its behalf to upload files to that drive.
However, I had to configure a project for this application in google api, and then download the corresponding credentials.json
file. I've read the question posted here, and I humbly think this is not the same case, because in my case the application is a python script that you copy in your machine in order to run it.
The question is: is it safe to upload the credentials.json file to github??? The credentials.json file is something like this:
"installed":
{"client_id":"NUMBERS-AND-DIGITS.apps.googleusercontent.com",
"project_id":"INVENTED-PROJECT-ID",
"auth_uri":"https://accounts.google.com/o/oauth2/auth",
"token_uri":"https://oauth2.googleapis.com/token",
"auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs",
"client_secret":"A-VERY-SECRET-CLIENT-ID",
"redirect_uris":
["urn:ietf:wg:oauth:2.0:oob",
"http://localhost"]
}
}
Edit: Some have suggested that is the same question of other, but in my case I am not revealing my credentials. Moreover, the first time the application run, asks for a google account and ask for permission to upload files to that account's drive.