https://bz.apache.org/ooo/show_bug.cgi?id=127680

--- Comment #2 from c...@cidimu.it ---

Thank you for the reply , i know it's outdated but that's not the problem.
The Issue is how macro handles the saving trough https/webdav , Anyway i tried
but it doesnt work.

I found a way for handling authentication with 
"com.sun.star.task.XInteractionHandler2" and
"com.sun.star.ucb.URLAuthenticationRequest"

see https://forum.openoffice.org/en/forum/viewtopic.php?f=20&t=66160


Sub SaveFile

Dim Doc As Object
        Dim     Url As  String
        Dim oihandler 
    oihandler = CreateUnoListener("InteractionHandler_",
"com.sun.star.task.XInteractionHandler2")
        Dim FileProp(1) As New com.sun.star.beans.PropertyValue     

        Url = "https://192.168.147.128/webdav/test.sxw";
        Url = ConvertToUrl(Url)
        FileProp(0).Name = "Overwrite"
        FileProp(0).Value = True
        FileProp(1).Name = "InteractionHandler"
        FileProp(1).Value = oihandler
        Doc = Stardesktop.CurrentComponent
        Doc.storeAsURL(Url, FileProp())
End Sub



Sub InteractionHandler_handle(req)
  r = req.getRequest()
  If CheckExceptionType(r, "com.sun.star.ucb.URLAuthenticationRequest") Then
    conts = req.getContinuations()   
    for i = 0 to ubound(conts) step 1
      cont = conts(i)
      If HasUnoInterfaces(cont,
"com.sun.star.ucb.XInteractionSupplyAuthentication") Then          
        cont.setUserName("username")     
        cont.setPassword(InputVal)
        cont.select()
        Exit For         
      End If
    Next i      
  End If
End Sub


So the problem here is to understand if i can use a certificate for client
Authentication combined with the password supplied by the the user.

Is there any exhaustive documentation on this interfaces ?

-- 
You are receiving this mail because:
You are the assignee for the issue.

Reply via email to