Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
When attempting to use MonoTouch to access a secured REST resource through MonoTouch, the REST resource is behind windows authentication. Can access the REST resource easily enough from .NET code on a Windows desktop. Below is the sample code of a console app that access the resource:
static void Main(string args)
NetworkCredential credential = new NetworkCredential("abc",
HttpWebRequest req =
icker?subarea=mpci&year=2009&pickerchanged=year") as HttpWebRequest;
req.Method = "GET";
req.KeepAlive = true;
CredentialCache ch = new CredentialCache();
ch.Add(req.RequestUri, "NTLM", credential);
req.Credentials = ch;
WebResponse resp = req.GetResponse();
long len = resp.ContentLength;
bool done = len > 0;
catch (Exception ex)
string msg = ex.Message;
Hitting the exact same NotImplementedException with IsMutuallyAuthenticated as well while using MonoTouch v6.0.4
Similar issues seen in:
Mono, and by extension MonoTouch, does not support Kerberos (nor the Microsoft extensions that MS added on top of it). This is why setting AuthenticationLevel.MutualAuthRequested will throw a NotImplementedException. There's no plan to include this inside Mono itself.
Apple does support GSSAPI so it _might_ be possible to authenticate to kerberos servers. OTOH MonoTouch does not have binding for this at the moment (nor are they planned).
Gouri lowered the importance from critical to High, but Spouliot does say that this is not planned right now so it would be hard to even say this is high priority.
I will set the priority back to normal, as this was only set to critical because of the Priority nature of the customer. The bug unfortunately is more of a feature request, and so cannot fall into the priority support SLA.
I would be happy to change this back to a higher priority if we have an answer for Sebastien or further pressure from Chris/customers to make this happen.
This bug was targeted for a past milestone, moving to the next non-hotfix active milestone.
Closing to avoid confusion. There are still no plan for low-level GSSAPI bindings (and they would not have helped here).
There's also no plan for Mono to get a more general/cross-platform Kerberos implementation.
The only option, as mentioned in comment #2, remains to use high-level iOS API (e.g. NSURLSession) or an HttpClient with a native (not managed) handler and let the OS deal with it.