M-Files / Libraries.MFWSClient

An example .NET wrapper for the M-Files Web Service.
MIT License
14 stars 12 forks source link

AuthenticateUsingSingleSignOn not working after RestSharp 112 upgrade #36

Open Ezeckiel2517 opened 1 month ago

Ezeckiel2517 commented 1 month ago

RestSharp 112 has breaking changes to cookiecontainer.

When executing the AuthenticateUsingSingleSignOn, it generates this exception.

System.NullReferenceException HResult=0x80004003 Message=Object reference not set to an instance of an object. Source=MFaaP.MFWSClient StackTrace: at MFaaP.MFWSClient.MFWSClient.d__11.MoveNext() in C:\Git\MFWSClient\MFaaP.MFWSClient\MFWSClient.Authentication.cs:line 166

My PR is on the way

Ezeckiel2517 commented 1 month ago

@CraigHawker PR 37

CraigHawker commented 1 month ago

Accepted and merged. I will try to create a new nuget release later today, if I can.

Ezeckiel2517 commented 1 month ago

Great, I take a look at the unit test but cannot find a way to add one because the interface IRestClient.CookieContainer is mocked.