My entire C#/Twilio application has been using HTTPS with Basic Authentication flawlessly up until this point. I'm using the C# TwiML wrapper classes to create and return a dial TwiML Command.
var helper = new UrlHelper(Request.RequestContext);
var recordingUri = helper.ActionUri("Process", "RecordingCallBack");
var vr = new VoiceResponse();
var dial = new Dial("xxx-xxx-xxxx", record: record, timeout: 15,recordingStatusCallback: recordingUri,
recordingStatusCallbackEvent: recEvent, recordingStatusCallbackMethod:HttpMethod.Get);
return TwiML(vr.Append(dial));
The issue is that the recordingStatusCallback is being returned a 401 Unauthorized and subsequent request with the appropriate credentials is never being sent. When I move my action to an unprotected controller the request processes fine but I don't want to leave this end point exposed. How can I configure the recording call back url with basic auth?