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

New commits:
commit d36a58540413e89b2dcd0f4a0853c6aa3ed06d88
Author: Mihai Varga <mihai.m...@gmail.com>
Date:   Wed Jun 25 13:02:41 2014 +0300

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

diff --git a/ucb/source/ucp/cmis/auth_provider.cxx 
b/ucb/source/ucp/cmis/auth_provider.cxx
index bd00986..895aac0 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 = "instructions";
+        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..c6e030c 100644
--- a/ucb/source/ucp/cmis/auth_provider.hxx
+++ b/ucb/source/ucp/cmis/auth_provider.hxx
@@ -29,6 +29,8 @@ 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*/ );
     };
 }
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to