davidstrauss / google-drive-recursive-ownership

Tool to recursively give away file and document ownership to another user.
MIT License
269 stars 68 forks source link

Error 400: redirect_uri_mismatch #35

Open hiddenz08 opened 4 years ago

hiddenz08 commented 4 years ago

I keep getting this error, I think it's because of what I put on redirect_uris. But I'm not really sure what I am supposed to put there. Please help me

greipfrut commented 4 years ago

Try this: When you're creating the Credentials and at the Create OAuth client ID page, select Desktop app for Application type instead of Web application. Then you shouldn't have to set the Authorized redirect URI .

image

Then when you click on the new credential you selected, you should see a DOWNLOAD JSON button. Download it and rename it to client_secrets.json.

image
subtleseeker commented 4 years ago

When you're creating the Credentials and at the Create OAuth client ID page, select Desktop app for Application type instead of Web application. Then you shouldn't have to set the Authorized redirect URI .

It would be great, if this could be added in the README. Also, please add a note saying that the ownership cannot be changed between different domains as Google doesn't allow it.

davidstrauss commented 4 years ago

It would be great, if this could be added in the README.

I'd accept a pull request to add it in a heartbeat.