Skip to content

drive init generates link that returns Error 400: invalid_request #1146

Open
@AJPoulter

Description

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." }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions