[Libreoffice-bugs] [Bug 101630] Google Drive two-factor authentication (2FA) not working again

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Jul 28 09:14:25 UTC 2021


https://bugs.documentfoundation.org/show_bug.cgi?id=101630

--- Comment #82 from Christian Lohmaier <cloph at documentfoundation.org> ---
Some hints/remarks to the fix:

* the initial repository-add dialogs have not been adjusted yet, they still ask
for username and password, however those are not used. The username field is
for LO's own distinguishing between different instances, but not used in the
authentication. You can leave the password empty, it is not used to
authenticate.

* to allow storing of the refresh token, you should enable persistent storage
of credentials in Tools|Options → LO → Security → [x] allow persistent storage
and [x] protect with master password. With that LO can store the refresh-token
to use for further requests, and you only have to provide the master password.

* With the persistent storage enabled, and trying to setup the connection for
the first time, LO will ask for the masterpassword to look for an existing
refresh token, on first setup there obviously won't be one so it will go to the
login procedure: Copy'n'paste the link to your browser, grant LibreOffice the
access to files → You will get an access token that you copy back to the
LibreOffice dialog. LibreOffice will then ask once more for the masterpassword
to store the refresh token obtained using the access-token.

Also important: LO is not verified to use restricted scopes yet, so it can only
use drive.file scope, meaning when accessing GDrive from LO you'll only see the
files that you created with LibreOffice, other files will not be accessible
(you will however be able to see the files created with LO in e.g. in your
gdrive in browser)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210728/ed4e867b/attachment.htm>


More information about the Libreoffice-bugs mailing list