Hi folks,

    port database/akonadi-google-data development stopped and 
database/akonadi-google contains authentication bug make it impossible to 
authenticate with Google services.

The port will be merged in the KDE [1] in the upcomming release. the 
authentication bug fixed in the trunk [2]. I ported the fix to the current 
version in the ports [3] so it work.

Cheers,
Mina R Waheeb


[1] http://www.progdan.cz/2012/05/libkgoogle-libkgapi/
[2] 
https://projects.kde.org/projects/extragear/libs/libkgapi/repository/revisions/a5ab37f15f39217cf631f8d61b2ea21305b81490/diff/libkgapi/ui/authwidget_p.cpp
[3] Patch atteched
--- libkgoogle/authdialog.cpp	2012-04-27 15:40:31.000000000 +0200
+++ libkgoogle/authdialog.cpp	2012-07-18 23:21:14.574038294 +0200
@@ -102,13 +102,17 @@
     }
 
     if (url.host() == "accounts.google.com" && url.path() == "/o/oauth2/approval") {
-        QWebElement el = m_webiew->page()->mainFrame()->findFirstElement("textarea");
-        if (el.isNull()) {
+        QString title = m_webiew->title();
+        QString token;
+        if (title.startsWith(QLatin1String("success"), Qt::CaseInsensitive)) {
+            int pos = title.indexOf(QLatin1String("code="));
+            /* Skip the 'code=' string as well */
+            token = title.mid (pos + 5);
+        } else {
             emitError(KGoogle::AuthError, i18n("Parsing token page failed."));
             return;
         }
 
-        QString token = el.toInnerXml();
         if (token.isEmpty()) {
             emitError(KGoogle::AuthError, i18n("Failed to obtain token."));
             return;
_______________________________________________
kde-freebsd mailing list
kde-freebsd@kde.org
https://mail.kde.org/mailman/listinfo/kde-freebsd
See also http://freebsd.kde.org/ for latest information

Reply via email to