twolfson / grunt-curl

Download files from the internet via grunt.
The Unlicense
73 stars 28 forks source link

Add support for authentication #34

Closed thg1101 closed 9 years ago

thg1101 commented 9 years ago

Adding support for the -u CLI parameter, especially with :x-oauth-basic would enable (among, I'm sure, other things) downloading from private GIT repos, and negate the need for bower for simple dependencies

twolfson commented 9 years ago

Sorry for the slow reply. This issue is a duplicate of #32. Here is a copy/paste of the example, please see the issue for more information:

src: {
  url: 'http://google.com',
  auth: {
    username: 'foo',
    password: 'bar'
  }
}