Giter Site home page Giter Site logo

Comments (11)

mitchelkuijpers avatar mitchelkuijpers commented on July 20, 2024

I will investigate how to add support for digest authentication but it does not seem so hard. Thank you for your extensive Issue 👍

from grunt-webdav-sync.

mitchelkuijpers avatar mitchelkuijpers commented on July 20, 2024

I have replaced the basic http client for request.js which should include support for digest authentication: ffd8208. I tried using jsDAV to test the authentication but the implementation does not seem to work correctly, so please try it out the new version 0.2.4 and let me know if the digest authentication works :)

from grunt-webdav-sync.

jfix avatar jfix commented on July 20, 2024

Just upgraded to 0.2.4 to give this a spin. Unfortunately, there seems to be a problem with the handling of directories, with both the 'basic' and the 'digest' authentication schemes.

I have this directory structure that I'm 'watching' with Grunt:

src/
     test/
          ascript
     test.xqy
     test2.xqy

Here's what happens when I change the ascript file (or any other, for that matter):

>> File "src/test/ascript" changed.

Running "webdav_sync:default" (webdav_sync) task
starting webdav_sync
Searching for files in: src/**
>> Found 4 files, Start uploading files to http://admin:[email protected]:8887/
>> Unknown error while deleting a dir gave statuscode: 207
>> Unknown error while deleting a dir gave statuscode: 207
Warning: Task "webdav_sync:default" failed. Use --force to continue.

Aborted due to warnings.
Completed in 0.785s at Sun Nov 24 2013 17:49:08 GMT+0100 (CET) - Waiting...

I don't really understand why it's attempting to delete a directory ... The status code 207 is a WebDAV-specific success response. But in any case the directory is not created and the file it should contain doesn't exist either in the WebDAV location. At least, the behaviour is the same for digest and basic. ;-)

from grunt-webdav-sync.

mitchelkuijpers avatar mitchelkuijpers commented on July 20, 2024

I have added this in the last commit to get more of a "synchronisation" behaviour. Is this behaviour a problem for you? Maybe this should be a configuration property..

from grunt-webdav-sync.

jfix avatar jfix commented on July 20, 2024

I don't understand what you mean :( -- Currently I cannot use this grunt plugin because it throws errors when (in my mind) it shouldn't. Thanks (and happy new year).

from grunt-webdav-sync.

mitchelkuijpers avatar mitchelkuijpers commented on July 20, 2024

@jfix Does digest authentication work for you? If it does we can close this issue.

from grunt-webdav-sync.

jfix avatar jfix commented on July 20, 2024

Yes, I've just tried the latest version 0.2.7, using both basic and digest, and they both work. Great work! Bedankt!

from grunt-webdav-sync.

mitchelkuijpers avatar mitchelkuijpers commented on July 20, 2024

Alstublieft!

from grunt-webdav-sync.

dviramontes avatar dviramontes commented on July 20, 2024

For basic auth:
on the grunt task remote_path string

are you guys needing to do something like this ?:

remote_path: user + ":" + (new Buffer(pass).toString('base64')) + "@localhost:8080/blablah"

or can i just pass the password as a regular string ?

im hitting an authentication issue, just wondering if its something i'm doing wrong.

thanks guys

from grunt-webdav-sync.

jfix avatar jfix commented on July 20, 2024

Hi,

my remote_path for testing looks like this:

remote_path: 'http://admin:[email protected]:8888/'

no need to base64-encode the password.

from grunt-webdav-sync.

dviramontes avatar dviramontes commented on July 20, 2024

Hey Thanks @jfix
very helpful

from grunt-webdav-sync.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.