google-drive-recursive-ownership icon indicating copy to clipboard operation
google-drive-recursive-ownership copied to clipboard

Error 400: redirect_uri_mismatch

Open hiddenz08 opened this issue 5 years ago • 3 comments

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

hiddenz08 avatar May 27 '20 16:05 hiddenz08

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

greipfrut avatar Jul 23 '20 14:07 greipfrut

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.

subtleseeker avatar Sep 30 '20 05:09 subtleseeker

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

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

davidstrauss avatar Sep 30 '20 22:09 davidstrauss