Bug 473504

Summary: Invalid request when authenticating to GDrive
Product: [Applications] kipiplugins Reporter: Emanuele Fabrizio <efabrizio>
Component: generalAssignee: imaging-bugs-null
Status: REPORTED ---    
Severity: major    
Priority: NOR    
Version First Reported In: 5.9.0   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Error returned from Google Sign-in

Description Emanuele Fabrizio 2023-08-18 10:44:06 UTC
Created attachment 161045 [details]
Error returned from Google Sign-in

SUMMARY
***
From Spectacle, when exporting a screenshot to GDrive, the browser opens correctly trying to authenticate the google account, but it fails with the following message: invalid_request
Details are in the screenshot.
***

STEPS TO REPRODUCE
1.  Open Spectacle
2.  Take a screenshot
3.  Choose to "Export -> More Online Services -> Export to Google Drive..."

OBSERVED RESULT
The browser opens loading a URL from accounts.google.com and it responds with "invalid_request".

EXPECTED RESULT
The browser opens loading a URL from accounts.google.com and it presents the list of accounts to choose from.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 22.04
(available in About System)
KDE Plasma Version:  5.24.7
KDE Frameworks Version:  5.92.0
Qt Version: 5.15.3

ADDITIONAL INFORMATION
Google directs the developer to use Out-Of-Band (OOB) flow Migration with information at this URL:
https://developers.google.com/identity/protocols/oauth2/resources/oob-migration

It seems that since February 16, 2022 the authentication method had to change.