0

I have an MVC3 site that uses Windows Authentication.

I need some way to kick off code on the site through a batch file. My existing solution is to use cURL to call the methods of one of my controllers (I believe this is called a webhook?) However I'm running into authentication problems, and I don't want to include a domain user/password in the batch file.

I was considering creating a seperate site that uses Anyonymous auth for this one controller, but figured there has to be a better way to accomplish what I'm trying to do.

Advice would be appreciated.

Cavyn VonDeylen
  • 4,189
  • 9
  • 37
  • 52
  • Have you tried adding [AllowAnonymous] to the controller method that you are using? That should get around the need for authentication if that is what you really want to do. Another option would be to try setting a attribute in the web.config – scott-pascoe May 02 '13 at 18:47

1 Answers1

0

It turns out you can use Kerberos authentication in cURL

curl.exe --negotiate -u : [url]
Cavyn VonDeylen
  • 4,189
  • 9
  • 37
  • 52
  • Oh wow, I actually answered a [near identical question to this about 2 months ago](http://stackoverflow.com/a/15486836/1080891). I feel like a moron. – Cavyn VonDeylen May 07 '13 at 18:08