Bug 151415 - Adding Google Drive as remote service fails because OOB has been deprecated
Summary: Adding Google Drive as remote service fails because OOB has been deprecated
Status: RESOLVED DUPLICATE of bug 101630
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.4.1.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-07 19:41 UTC by empbarruel
Modified: 2023-10-22 12:39 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description empbarruel 2022-10-07 19:41:52 UTC
Description:
Google has deprecated its OAuth out-of-band flow for security reasons as of October 3, 2022, so users can no longer add Google Drive as a remote service. Attempts to do so will result in the error "Access blocked: LibreOffice’s request is invalid." If an attempt seems successful (Google returns a code for the user to copy and paste into LibreOffice), the user is asked to redo the authentication process until the error shows up.

Steps to Reproduce:
1. File > Open Remote...
2. Manage services > Add service (Type: Google Drive)
3. Enter user (Google Drive account) and leave password empty
4. Press OK
5. Press OK (leave password empty again on "Authentication Required" popup)
6. Open given Google OAuth link in browser
7. Allow LibreOffice access to Google if request is not returned as invalid
8. Copy and paste given code into field in "Authentication Required" popup
9. Press OK
10. Repeat steps 6-9 until "Access blocked: LibreOffice’s request is invalid" error is given

Actual Results:
The "Authentication Required" popup opened again or Google returned an error (Access blocked: LibreOffice’s request is invalid).

Expected Results:
After step 9, LibreOffice should have been able to access remote files from Google Drive and continued with adding the service.


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Here is a guide for OOB flow migration: https://developers.google.com/identity/protocols/oauth2/resources/oob-migration
Comment 1 Buovjaga 2023-02-23 08:18:02 UTC
Bug 101630 is still open and there are tasks pending in it, so let's close as dupe

*** This bug has been marked as a duplicate of bug 101630 ***