Morten Nielsen

Results 336 comments of Morten Nielsen

This project has been discontinued now that Microsoft provides this with their HttpClient Nuget package. I recommend you port your code to use this instead.

> have you had a chance to review it at all? No I have not (obviously ;-) ). Sorry but this is a sparetime project that I make nothing on....

Maui isn’t supported. See .net6 branch: https://github.com/dotMorten/NmeaParser/tree/net6

I just hit this missing binding hard today too. This prevents us from doing any CAC card support on iOS/Catalyst.

I found this: https://github.com/xamarin/xamarin-macios/blob/a66950d2de86eefaa52c51d5034fd817b8dc7d21/src/Foundation/NSUrlSessionHandler.cs#L1021 I think what is missing is also a check for `if (challenge.ProtectionSpace.AuthenticationMethod == NSUrlProtectionSpace.AuthenticationMethodClientCertificate)`

Did a bit more hacking. At [this line](https://github.com/xamarin/xamarin-macios/blob/87953eda87eabdcbf487579ac7d5b441db872c0f/src/Foundation/NSUrlSessionHandler.cs#L1051) I inserted the following code. That is of course just for testing, but proves it can be done: ```cs if (sessionHandler.ClientCertificates is...

Here's that alternative solution with a callback. I inserted the code below here: https://github.com/xamarin/xamarin-macios/blob/87953eda87eabdcbf487579ac7d5b441db872c0f/src/Foundation/NSUrlSessionHandler.cs#L1036 ```cs else if (challenge.ProtectionSpace.AuthenticationMethod == NSUrlProtectionSpace.AuthenticationMethodClientCertificate) { if(sessionHandler.TryInvokeClientCertificateChallengeCallback(inflight.Request, challenge, out NSUrlCredential? credential)) { completionHandler(NSUrlSessionAuthChallengeDisposition.UseCredential, credential); return;...

@MitchellFreeman I put up a PR that adds certificate support linked above