[Libreoffice-commits] core.git: Branch 'feature/gsoc14-libcmis' - ucb/source

Mihai Varga mihai.mv13 at gmail.com
Wed Jun 25 02:48:34 PDT 2014


 ucb/source/ucp/cmis/auth_provider.cxx |   12 ++++++++++++
 ucb/source/ucp/cmis/auth_provider.hxx |    1 +
 2 files changed, 13 insertions(+)

New commits:
commit d7d7b6c69df584fc2c458cac9cd22eb95e21b0cd
Author: Mihai Varga <mihai.mv13 at gmail.com>
Date:   Wed Jun 25 12:48:04 2014 +0300

    default onedrive auth provider - not working yet
    
    Change-Id: Ief52a60f2f40cf9b64c4e971121f40235b15a122

diff --git a/ucb/source/ucp/cmis/auth_provider.cxx b/ucb/source/ucp/cmis/auth_provider.cxx
index bd00986..3f7d37a 100644
--- a/ucb/source/ucp/cmis/auth_provider.cxx
+++ b/ucb/source/ucp/cmis/auth_provider.cxx
@@ -15,6 +15,7 @@
 #include <ucbhelper/simpleauthenticationrequest.hxx>
 
 #include "auth_provider.hxx"
+#include <svtools/authentication.hxx>
 
 using namespace com::sun::star;
 using namespace std;
@@ -62,6 +63,17 @@ namespace cmis
         }
         return false;
     }
+    char* AuthProvider::authCodeFallback( const char* /*url*/,
+            const char* /*username*/, const char* /*password*/ )
+    {
+        OUString instructions = "ana are mere";
+        OUString url = "url";
+
+        AuthenticationDialog aDlg( NULL );
+        aDlg.Execute();
+        return strdup( "code" );
+    }
+
 }
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/ucb/source/ucp/cmis/auth_provider.hxx b/ucb/source/ucp/cmis/auth_provider.hxx
index f36d9a7..61be154 100644
--- a/ucb/source/ucp/cmis/auth_provider.hxx
+++ b/ucb/source/ucp/cmis/auth_provider.hxx
@@ -29,6 +29,7 @@ namespace cmis
                 m_xEnv( xEnv ), m_sUrl( sUrl ), m_sBindingUrl( sBindingUrl ) { }
 
             bool authenticationQuery( std::string& username, std::string& password ) SAL_OVERRIDE;
+            char* authCodeFallback( const char* url, const char* /*username*/, const char* /*password*/ );
     };
 }
 


More information about the Libreoffice-commits mailing list