mirror of
https://github.com/dutchcoders/transfer.sh.git
synced 2026-02-03 14:13:26 +00:00
Gdrive credential error #235
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @thanakijwanavit on GitHub.
I ran the code with following option
go run main.go --gdrive-client-json-filepath ../credential/creden.json --gdrive-local-config-path /tmp/ --basedir /tmp/ --provider gdriveHowever, it can't find the necessary oauth file which is really confusing. I downloaded the file for my service account on developers.google.com and it seems valid
Here is the response
Here is the content of the file
cat /credential/creden.json@paolafrancesca commented on GitHub:
did you solve the issue @thanakijwanavit ?
my client json file is like the following:
@paolafrancesca commented on GitHub:
@thanakijwanavit you provided a service acount json instead of a client api key one
at https://console.developers.google.com/apis/credentials you can create a api key and download the json file to use with transfer.sh
first time you will run the service please do in an iteractive shell because you will be prompted with a url to visit to get the authorization code for the client. once setup you can ran the service and the related config will be saved in the
--gdrive-local-config-path. I suggest you to not use/tmpsince its contet will be probably lost upon rebootalso, it's not safe to share you service account data including the private key publicly, I suggest you to revoke that service account
please, let me know if you were able to run the service properly
@paolafrancesca commented on GitHub:
@thanakijwanavit I don't remember: anyway in my json it is
["urn:ietf:wg:oauth:2.0:oob","http://localhost"]@thanakijwanavit commented on GitHub:
where did you get the redirect url from?
@thanakijwanavit commented on GitHub:
Thanks so much for your reply
I have created a Oauth-client-id.json however I got the following error
I am not sure if this is the correct json credential file but there seems to be no downloadable json file for api key
the current content of the creden.json file is
@thanakijwanavit commented on GitHub:
OK I will try that
@paolafrancesca commented on GitHub:
@thanakijwanavit did it work?
@thanakijwanavit commented on GitHub:
It works!!! thanks so much this is excellent. At the end I added some random uri and copied the [code] from the get query variable.