Can't access Googel Drive via Cloud 2.8 with client ID

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
perfectcream
Junior Member
Junior Member
Posts: 7
Joined: 2019-10-09, 10:30 UTC

Can't access Googel Drive via Cloud 2.8 with client ID

Post by *perfectcream »

Hi! There~~ I had followed the instruction of https://www.ghisler.com/googledrivehelp.htm to create and download JSON file, and click on the json button to import client ID & client secret.

When I login, I got a error screen say: "Something went wrong Sorry, something went wrong there. Try again." (please see screenshots) and Total Commander responsed "No access code received!" to me.

Image: https://imgur.com/r9xL9NR
Image: https://imgur.com/QIY5iH9

How do I deal with this problem? I had try to logout Google account and clean everything with Ctrl + H in Chrome.

Thank you for your kind cooperation :D
Jon Canale
Member
Member
Posts: 141
Joined: 2003-02-07, 12:54 UTC

Re: Can't access Googel Drive via Cloud 2.8 with client ID

Post by *Jon Canale »

Same problem here. Did all the google updates (json file, etc) and it didn't seem to work. Went back to Cloud plugin 2.60 and everything seems to be okay.
perfectcream
Junior Member
Junior Member
Posts: 7
Joined: 2019-10-09, 10:30 UTC

Re: Can't access Googel Drive via Cloud 2.8 with client ID

Post by *perfectcream »

I tried to use my Google Workspace account (Business Starter) with the same procedures, and it works!
So, maybe Google's security system detected the same access patterns and prohibited them.
perfectcream
Junior Member
Junior Member
Posts: 7
Joined: 2019-10-09, 10:30 UTC

Re: Can't access Googel Drive via Cloud 2.8 with client ID

Post by *perfectcream »

OK, this problem solved... the authentication information had been modified by ClearURLs, after disable it, everything works fine.

ClearURLs
https://chromewebstore.google.com/detail/clearurls/lckanjgmijmafbedllaakclkaicjfmnk?pli=1
arko
Junior Member
Junior Member
Posts: 86
Joined: 2020-04-05, 06:41 UTC

Re: Can't access Googel Drive via Cloud 2.8 with client ID

Post by *arko »

Problem is not solved here. I see the following:
Code received!
Please close browser and return to Total Commander.
...but attempting to enter the GDrive folder results in yet another OAuth window. In the loop.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48187
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Can't access Googel Drive via Cloud 2.8 with client ID

Post by *ghisler(Author) »

Does the log show anything useful? You need to enable FTP logging in Configuration - Options - FTP to also log plugins.
Author of Total Commander
https://www.ghisler.com
ralex59
Junior Member
Junior Member
Posts: 2
Joined: 2019-02-20, 14:53 UTC

Re: Can't access Googel Drive via Cloud 2.8 with client ID

Post by *ralex59 »

>>>Does the log show anything useful?

HTTP/ received, closing
POST /o/oauth2/token HTTP/1.1
200 OK
CONNECT \Google
=================
Get dir: \
GET /drive/v3/files?q=%27root%27+in+parents+and+trashed=false&fields=files(exportLinks,size,id,mimeType,modifiedTime,name,shared,shortcutDetails),nextPageToken&pageSize=1000&supportsAllDrives=true HTTP/1.1
Error: 403 Forbidden
Disconnected
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48187
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Can't access Googel Drive via Cloud 2.8 with client ID

Post by *ghisler(Author) »

Please also enable the detailed log file in the connection settings.
When posting the results, make sure to no post any access codes.
Author of Total Commander
https://www.ghisler.com
hijacksthis
New Member
New Member
Posts: 1
Joined: 2024-05-30, 03:03 UTC

Re: Can't access Googel Drive via Cloud 2.8 with client ID

Post by *hijacksthis »

arko wrote: 2024-04-01, 00:55 UTC Problem is not solved here. I see the following:
Code received!
Please close browser and return to Total Commander.
...but attempting to enter the GDrive folder results in yet another OAuth window. In the loop.
This is the procedure to avoid loop window.

1 : Download and install tcmd1103x64.exe : https://totalcommander.ch/1103/tcmd1103x64.exe
2 : Install the latest plugin of google drive : https://www.totalcommander.ch/win/fs/cloudplugin2.80.zip
Cloud
2.80
2024/02/11

3 .

You should go to https://console.cloud.google.com/ and log into with your google drive account and do everything list below

Here are the steps to create your own client id and client secret. Fortunately this needs to be done only once:

Go to https://console.developers.google.com/
Log in with your Google account (doesn't need to be the same as for the cloud connection)
Create a new project by clicking on the top-left combobox and then on "new project"
Click on "ENABLE APIS AND SERVICES"
Search for "Google Drive API"
Click "ENABLE"
Click "Credentials" in the left-side panel
Click on "CONFIGURE CONSENT SCREEN"
Click "External"
Click "CREATE"
Set an app name (of your choice)
Choose your e-mail in "User support mail"
Enter your e-mail in "Developer contact information"
Click "SAVE AND CONTINUE"
Click on "ADD OR REMOVE SCOPES"
Enable: API:Google Drive API" Scope: ".../auth/drive"
Click "UPDATE"
Click "SAVE AND CONTINUE"
Click "ADD USERS" under "Test users"
Enter your own e-mail address which you use for the Google account which you want to access withe the cloud plugin
Click "ADD"
-> your e-mail should appear under "User information"
Click "ADD" again if the mail wasn't accepted
Click "SAVE AND CONTINUE"
Click on "Credentials" in the left menu
Click on "+ CREATE CREDENTIALS"
Select "OAuth client ID"
Set Application type to "Desktop app" (name does not matter)
Click "CREATE"
Click on "DOWNLOAD JSON"
Click "OK"
Make sure to update to the latest cloud plugin from our plugins page
In the connection settings (Alt+Enter on connection), click on the json button (only displayed for Google Drive connections!)
Pick the json file you downloaded above. Alternatively, you can enter client id and client secret separated by a comma

4 : LAST STEP

CLOUD >> F7 new connection >> Name it >> next click en json button and select the last JSON file you create

Finally has configured Google Drive with json file created from https://console.developers.google.com/ and no loop window with code received
Post Reply