drive icon indicating copy to clipboard operation
drive copied to clipboard

drive init generates link that returns Error 400: invalid_request

Open AJPoulter opened this issue 2 years ago • 12 comments

executing drive init generates a url for https://accounts.google.com/o/oauth2/auth?.. that, when used, returns 400, invalid request. Further error message: You can’t sign in because drive for Google Drive sent an invalid request....third party app is using an unsupported OAuth method. Using the alternative service account option (referencing the generated json credential) does work but the drive resources that can be accessed with the service account are not those of the user account for which the service account should act as a delegate, even though the service account is added to a project with google drive api enabled and has a Google Workspace Marketplace-compatible OAuth client associated with it.

  • Note: setting the Subject in the generated credentials.json to the private user gmail account results in:

Response: { "error": "unauthorized_client", "error_description": "Client is unauthorized to retrieve access tokens using this method, or client not authorized for any of the scopes requested." }

AJPoulter avatar Feb 18 '23 15:02 AJPoulter

meet the same problem,anyone can help?

yanyang1024 avatar Mar 05 '23 14:03 yanyang1024

@yanyang1024 - I suggest that you transition to rclone.

hightowe avatar Mar 05 '23 15:03 hightowe

Same issue here.

nickgreenway avatar Mar 25 '23 22:03 nickgreenway

Same issue

leleogere avatar Apr 05 '23 08:04 leleogere

consider this repo looks like not being actively maintained, transition to alternative seems more viable for general user. Sounds like an some changes been done on google side, maybe some enforcement/changes of roles/scope of Oauth, also maybe need to request and change the official api key. I believe this bug is not that hard to resolve, a pr is very welcome obviously

mxvin avatar Apr 10 '23 05:04 mxvin

Maybe its #1142 ???

mxvin avatar Apr 10 '23 05:04 mxvin

i try install this https://packages.gentoo.org/packages/net-misc/drive

and do "drive init" in command line and have this error:

Access blocked: drive for Google Drive’s request is invalid

***@gmail.com You can’t sign in because drive for Google Drive sent an invalid request. You can try again later, or contact the developer about this issue. Learn more about this error If you are a developer of drive for Google Drive, see error details. Error 400: invalid_request

jiraff537 avatar May 16 '23 16:05 jiraff537

I have the same issue.

VehementHam avatar Jul 07 '23 23:07 VehementHam

Same issue here

gmordele avatar Jul 08 '23 17:07 gmordele

same!

HRezaei avatar Jul 10 '23 21:07 HRezaei

sam here!

dgonzalez211 avatar Jul 31 '23 06:07 dgonzalez211

The error details are:

Error 400: invalid_request

The out-of-band (OOB) flow has been blocked in order to keep users secure. Follow the Out-of-Band (OOB) flow migration guide linked in the developer docs below to migrate your app to an alternative method. Request details: redirect_uri=urn:ietf:wg:oauth:2.0:oob

TheFibonacciEffect avatar Sep 20 '23 08:09 TheFibonacciEffect