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

Mihai Varga mihai.mv13 at gmail.com
Mon Jun 30 10:32:41 PDT 2014


 ucb/source/ucp/cmis/auth_provider.cxx |   14 ++++++++++++++
 1 file changed, 14 insertions(+)

New commits:
commit 4a3d9636c7652626ab72b7592ae8ecf752038047
Author: Mihai Varga <mihai.mv13 at gmail.com>
Date:   Mon Jun 30 20:32:04 2014 +0300

    the fallback auth provider is set
    
    Change-Id: I2c92a87d62b3583b0919b9397904a94c92ba7802

diff --git a/ucb/source/ucp/cmis/auth_provider.cxx b/ucb/source/ucp/cmis/auth_provider.cxx
index 9a5d2e9..d9e27c3 100644
--- a/ucb/source/ucp/cmis/auth_provider.cxx
+++ b/ucb/source/ucp/cmis/auth_provider.cxx
@@ -89,9 +89,23 @@ namespace cmis
                 rtl::Reference< ucbhelper::AuthenticationFallbackRequest > xRequest
                     = new ucbhelper::AuthenticationFallbackRequest (
                             instructions, url_oustr );
+
                 xIH->handle( xRequest.get() );
+
                 rtl::Reference< ucbhelper::InteractionContinuation > xSelection
                     = xRequest->getSelection();
+
+                if ( xSelection.is() )
+                {
+                    // Handler handled the request.
+                    const rtl::Reference< ucbhelper::InteractionAuthFallback >&
+                        xAuthFallback = xRequest->getAuthFallbackInter( );
+                    if ( xAuthFallback.is() )
+                    {
+                        OUString code = xAuthFallback->getCode( );
+                        return strdup( OUSTR_TO_STDSTR( code ).c_str( ) );
+                    }
+                }
             }
         }
 


More information about the Libreoffice-commits mailing list