Re get Google credentials from KAccounts when a refresh is needed.

Authored by barchiesi on Jul 8 2019, 7:54 AM.

Description

Re get Google credentials from KAccounts when a refresh is needed.

Summary: Currently, when the Google access token in use expires, the KIO slave silently ignores refreshing the token (only 'not implemented' gets logged) and fails all subsequent api requests. This patch prevents the slave from breaking by requesting new credentials from KAccounts.

Test Plan: Open a Google Drive folder in Dolphin, wait until accounts token needs a refresh, open another Google Drive folder. The folder loads because a new access token was requested.

Reviewers: elvisangelaccio

Reviewed By: elvisangelaccio

Subscribers: mck182, elvisangelaccio

Differential Revision: https://phabricator.kde.org/D22009