Because it’s not (working)… Customer is on Epicor SaaS, I have an Epicor Function that I am calling from a client customization with the help of RestClientBuilder. Works fine using a normal username and password session, but craps its pants with a NullReferenceException when logged in with Azure login through SSO…
Code is pretty basic, error happens when calling RestClientBuilder.Build(), it’s a NullReferenceException in the Build() method, with no inner exception. Same code works fine in both Kinetic and Classic when using a normal non-SSO login. Since the only external object I am passing the RestClientBuilder is the Session object, I am guessing something is missing in the session object… This is what makes this so difficult to diagnose, I have no additionnal information…
I can post the actual code on monday, but it’s really not going to tell you any more than this…
It can’t come from my code, because by then my code isn’t even in play, the error occurs as I am trying to build the RestClient… Only two objects is the RestClientBuilder, and the Ice.Core.Session object…
var restApiKey = "MYAPIKEY";
var s = (Ice.Core.Session)oTrans.Session;
var restClient = new RestClientBuilder().SetDefaultApiKey(restApiKey)
.UseSession(s)
.Build();
I can’t serialize the session object, somehow both JsonSerializer and XmlSerializer just take 2-3 minutes and then crap out with no error, probably due to recursion issues… Which properties do you want to see?
SSO in smart client always meant Windows auth only, not Azure or IDP.
In this topic it is mentioned in different context. Did you set any property or anything specifically with SSO name in it?
Sorry for the delay, Support is taking care of it… Apparently they had to adjust something in the server config, as well as modify something in the client .sysconfig… I will test their solution this afternoon, will update later…
So, support was as useless as usual, they did nothing but point me to the AuthenticationMode in the client .sysconfig. Which was pointless. It sill doesn’t work. And after decompiling Epicor source it cannot work.