<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>431907</bug_id>
          
          <creation_ts>2021-01-22 00:11:30 +0000</creation_ts>
          <short_desc>Authentication to Google fails with &quot;This browser or app may not be secure.&quot;</short_desc>
          <delta_ts>2021-01-22 18:35:35 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>digikam</product>
          <component>Plugin-WebService-Google</component>
          <version>7.1.0</version>
          <rep_platform>macOS (DMG)</rep_platform>
          <op_sys>macOS</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>johcha</reporter>
          <assigned_to name="Digikam Developers">digikam-bugs-null</assigned_to>
          <cc>caulier.gilles</cc>
    
    <cc>metzpinguin</cc>
    
    <cc>nicolas.fella</cc>
          
          <cf_commitlink>https://invent.kde.org/graphics/digikam/commit/954697619646385190f333b9c4b7aeaeda785bd2</cf_commitlink>
          <cf_versionfixedin>7.2.0</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1996646</commentid>
    <comment_count>0</comment_count>
    <who name="">johcha</who>
    <bug_when>2021-01-22 00:11:30 +0000</bug_when>
    <thetext>SUMMARY


STEPS TO REPRODUCE
1. Goto: Import from Google Photos
2. User is prompted to enter email address to authenticate

OBSERVED RESULT
User is shown the following error message with no 

&quot;This browser or app may not be secure.

Try using a different browser. If you’re already using a supported browser, you can refresh your screen and try again to sign in.&quot;


EXPECTED RESULT
User should be able to provide password and 2nd factor authentication.

I&apos;ve generated the access token to use the Google Photos API in the past. The ability to manually provide the token could be a good workaround by using a

SOFTWARE/OS VERSIONS

macOS: 10.15.7

ADDITIONAL INFORMATION</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1996681</commentid>
    <comment_count>1</comment_count>
    <who name="">caulier.gilles</who>
    <bug_when>2021-01-22 04:15:08 +0000</bug_when>
    <thetext>Please try with digiKam 7.2.0 RC pre-release:

https://files.kde.org/digikam/

Gilles Caulier</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1996700</commentid>
    <comment_count>2</comment_count>
    <who name="Maik Qualmann">metzpinguin</who>
    <bug_when>2021-01-22 05:15:42 +0000</bug_when>
    <thetext>I can confirm the problem here on Linux using the QWebEngine. After a short research, Google no longer allows a browser based on the Chromium Framework within an app. We may have to port our App to a &quot;Progressive Web App&quot;.

Maik</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1996709</commentid>
    <comment_count>3</comment_count>
    <who name="Maik Qualmann">metzpinguin</who>
    <bug_when>2021-01-22 07:15:54 +0000</bug_when>
    <thetext>Git commit 9a100bf354ee00c1eadb6b7bdcbdc0c6e385fad4 by Maik Qualmann.
Committed on 22/01/2021 at 07:15.
Pushed by mqualmann into branch &apos;master&apos;.

first workaround to fix login to Google with QWebEngine

M  +3    -0    core/libs/dialogs/webbrowserdlg.cpp

https://invent.kde.org/graphics/digikam/commit/9a100bf354ee00c1eadb6b7bdcbdc0c6e385fad4</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1996886</commentid>
    <comment_count>4</comment_count>
    <who name="Maik Qualmann">metzpinguin</who>
    <bug_when>2021-01-22 18:31:51 +0000</bug_when>
    <thetext>Git commit 954697619646385190f333b9c4b7aeaeda785bd2 by Maik Qualmann.
Committed on 22/01/2021 at 18:30.
Pushed by mqualmann into branch &apos;master&apos;.

change user agent from QWebEngine browser
FIXED-IN: 7.2.0

M  +2    -1    NEWS
M  +17   -1    core/libs/dialogs/webbrowserdlg.cpp

https://invent.kde.org/graphics/digikam/commit/954697619646385190f333b9c4b7aeaeda785bd2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1996887</commentid>
    <comment_count>5</comment_count>
    <who name="Maik Qualmann">metzpinguin</who>
    <bug_when>2021-01-22 18:35:35 +0000</bug_when>
    <thetext>It looks like that if Google finds the string &quot;Chrome&quot; it is probably making specific Chrome API calls that QWebEngine does not support. The Chromium Browser, although it uses the same User Agent, is not affected. QWebKit is still working now. We&apos;ll have to keep an eye on it.

Maik</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>