Comments (11)
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.
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.
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.
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.
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.
@jfix Does digest authentication work for you? If it does we can close this issue.
from grunt-webdav-sync.
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.
Alstublieft!
from grunt-webdav-sync.
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.
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.
Hey Thanks @jfix
very helpful
from grunt-webdav-sync.
Related Issues (13)
- Sync issues with sub folders HOT 6
- Erroring on sync HOT 14
- Authentication Error HOT 5
- Create directories as needed HOT 1
- option to exclude certain file extensions/folders HOT 1
- Grunt task fails when trying to target files only, not subfolders HOT 3
- Make better use of the file api for grunt plugins
- Add support for storing usernames and passwords in a separate 'key' file
- Support for https ?- getting Fatal error: Cannot read property 'statusCode' of undefined HOT 5
- Latest version not in npm repository HOT 1
- The binary formats are hardcoded
- sendImmediately=false HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grunt-webdav-sync.