Warning: Google Drive access will soon only be possible via own client id
Moderators: Hacker, petermad, Stefan2, white
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Warning: Google Drive access will soon only be possible via own client id
Unfortunately after restricting my "cloud" plugin for Windows (thread here), Google is now doing the same to my "drive" plugin for Android. It would cost several 10'000 dollars per year to keep the plugin working as it is now.
Therefore I have decided to use the same approach as with the "cloud" plugin: Users will have to create their own credentials to log in. Currently it's still working with built-in credentials, but it will stop working within the next 30-60 days.
If you are a heavy user of this plugin, or if you have already created your own credentials for the Windows "cloud" plugin, then please test the beta version which supports both the old built-in credentials and the new user-created credentials:
https://play.google.com/apps/testing/com.ghisler.tcplugins.drive
To use the new credentials, open the plugin and click on <Settings & Privacy>. Then click on JSON and pick the JSON file created for the "cloud" plugin for Windows.
Here are the instructions to create your own credentials. It looks like a lot of steps, but they are all very small, so it's not that hard:
https://www.ghisler.com/googledriveandroid.htm
Therefore I have decided to use the same approach as with the "cloud" plugin: Users will have to create their own credentials to log in. Currently it's still working with built-in credentials, but it will stop working within the next 30-60 days.
If you are a heavy user of this plugin, or if you have already created your own credentials for the Windows "cloud" plugin, then please test the beta version which supports both the old built-in credentials and the new user-created credentials:
https://play.google.com/apps/testing/com.ghisler.tcplugins.drive
To use the new credentials, open the plugin and click on <Settings & Privacy>. Then click on JSON and pick the JSON file created for the "cloud" plugin for Windows.
Here are the instructions to create your own credentials. It looks like a lot of steps, but they are all very small, so it's not that hard:
https://www.ghisler.com/googledriveandroid.htm
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Warning: Google Drive access will soon only be possible via own client id
Could someone - anyone - test this please? Time is running out, and I will have to remove the app from the Play Store if I can't update the app.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Warning: Google Drive access will soon only be possible via own client id
I tested this test-version following the instruction and it seems to work for me.
I do encounter one tiny issue during the process. The replay here is:
1. Set JSON via <Settings & Privacy>, done.
2. Click my account in Drive plugin...
3. Drive plugin shows messages about "click OK after login in browser"...
4. Bring up browser app and it ask me to login my Google account...
5. Enter my account and password to login...
6. Since I enabled 2-factors login, Google (in browser) ask me to confirm my login via notification...
7. I confirm my login. Now the browser app closed before it can ask me grant permission to Drive plugin. This results that Drive plugin not receiving token at all.
The workaround I took here is:
8. Start my browser app first, login (with 2-factors) into my Google account with accounts.google.com
9. Back to Total Commander and Drive plugin, click my account in it.
10. Drive plugin shows messages...bring up browser app... since I already logged in, it shows permission granting screen this time.
11. Grant permission to Drive plugin.
12. Now browser app closed and back to Drive plugin message, click OK.
13. And it works.
I do encounter one tiny issue during the process. The replay here is:
1. Set JSON via <Settings & Privacy>, done.
2. Click my account in Drive plugin...
3. Drive plugin shows messages about "click OK after login in browser"...
4. Bring up browser app and it ask me to login my Google account...
5. Enter my account and password to login...
6. Since I enabled 2-factors login, Google (in browser) ask me to confirm my login via notification...
7. I confirm my login. Now the browser app closed before it can ask me grant permission to Drive plugin. This results that Drive plugin not receiving token at all.
The workaround I took here is:
8. Start my browser app first, login (with 2-factors) into my Google account with accounts.google.com
9. Back to Total Commander and Drive plugin, click my account in it.
10. Drive plugin shows messages...bring up browser app... since I already logged in, it shows permission granting screen this time.
11. Grant permission to Drive plugin.
12. Now browser app closed and back to Drive plugin message, click OK.
13. And it works.
Re: Warning: Google Drive access will soon only be possible via own client id
Works here, without any problems.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Warning: Google Drive access will soon only be possible via own client id
2Jedi
Thanks, I can reproduce the problem. It happens because I'm calling Chrome with the parameter FLAG_ACTIVITY_NO_HISTORY. This prevents the login screen from appearing in the task manager (list of previously opened apps). Unfortunately it also seems to prevent Android from returning to the login screen after closing the 2 factor screen. I will therefore remove FLAG_ACTIVITY_NO_HISTORY although it's bad that the user can then return to the login page.
Thanks, I can reproduce the problem. It happens because I'm calling Chrome with the parameter FLAG_ACTIVITY_NO_HISTORY. This prevents the login screen from appearing in the task manager (list of previously opened apps). Unfortunately it also seems to prevent Android from returning to the login screen after closing the 2 factor screen. I will therefore remove FLAG_ACTIVITY_NO_HISTORY although it's bad that the user can then return to the login page.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Warning: Google Drive access will soon only be possible via own client id
Here is beta 2, you can install it from an Android web browser without uninstalling the first beta:
https://www.totalcommander.ch/beta/tcandroiddrive240b2.apk
I'm posting it here because currently it takes several days to get an app approved in the Play Store.
Improvements:
1. You can now add Google Drive accounts manually by entering mail addresses when a JSON file has been added.
2. Login with 2 factors should work now. You can test this by launching Chrome manually and logging out of your Google account.
https://www.totalcommander.ch/beta/tcandroiddrive240b2.apk
I'm posting it here because currently it takes several days to get an app approved in the Play Store.
Improvements:
1. You can now add Google Drive accounts manually by entering mail addresses when a JSON file has been added.
2. Login with 2 factors should work now. You can test this by launching Chrome manually and logging out of your Google account.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Warning: Google Drive access will soon only be possible via own client id
Does that mean that you will not put beta2 in the app store? (it is currently not there now 5 days later)I'm posting it here because currently it takes several days to get an app approved in the Play Store.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Warning: Google Drive access will soon only be possible via own client id
I will not put it there. I will either release the final version directly, or discontinue the plugin in the store.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Warning: Google Drive access will soon only be possible via own client id
I hope notor discontinue the plugin in the store
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Warning: Google Drive access will soon only be possible via own client id
My fear is that Google will not approve the new plugin for some reason - maybe that's why it took so long to check.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Warning: Google Drive access will soon only be possible via own client id
2ghisler(Author)
But beta 1 got appoved pretty fast - is there so much difference to beta 2?
But beta 1 got appoved pretty fast - is there so much difference to beta 2?
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Warning: Google Drive access will soon only be possible via own client id
It took several days.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Warning: Google Drive access will soon only be possible via own client id
Since I didn't get any feedback to beta 2, I have now again published beta 3 in the Play Store. Strangely it only took a few hours this time to get it approved, while previously it took a few days...
Please test it!
Please test it!
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Warning: Google Drive access will soon only be possible via own client id
I installed 2.40b3, deleted the JSON credentials, and reinstalled them. Then logged with Google Chrome with no problems (just as previously)
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Re: Warning: Google Drive access will soon only be possible via own client id
2.40b3 works for me. Tested both "system" and "manual" accounts (using same google account) without problem.
BTW, are all accounts share the same JSON file? What should I do to prepare JSON if I'd like to use different google accounts (with customized domains) too?
BTW, are all accounts share the same JSON file? What should I do to prepare JSON if I'd like to use different google accounts (with customized domains) too?