Security Integration w/4.3.41
Posted: Mon Dec 14, 2020 7:36 pm
With the new release of 4.3.41 I can't get my integration application to login through the mid tier with credentials that are working in 4.3.38. I consistently get a "Security Error" trying to create a SelectServer instance both using the new PIN technology and not using it. the only change in my application is re-compiling with the new DLL's. I have installed the new Client locally and am able to select the IL Futures sps server and login with a set of the credentials being used my my integration app with no issue. Logging in with a local client does not prompt me for a pin however.
Below is the code that is giving me the error:
I have tried the suggestion of adding an environment variable to disable the check for PIN but the result is the same (providing I have added the variable correctly)
The code listed above works in production using the 4.3.38 DLLs.
Below is the code that is giving me the error:
Code: Select all
Uri uri = new Uri(sUri);
NetworkCredential creds = new NetworkCredential(sLogin, sPassword, "[SERVER]");
string dbPIN = sUri + sPIN;
Environment.SetEnvironmentVariable("SPS_CERTPINS", dbPIN, EnvironmentVariableTarget.Process);
if (iConsole == 0) { WriteLog.WriteLine(Convert.ToString(DateTime.Now) + ": " + "Login/password set" + sLogin); } else { Console.WriteLine("Login/Password " + sLogin + " / " + sPassword); }
/// ══════════════════════════════════════════════════════════════════════════
/// connect to server and authenticate
/// ══════════════════════════════════════════════════════════════════════════
///
using (SelectServer sps = new SelectServer(uri, creds))
{
DisambiguateLookups(sps);
}
The code listed above works in production using the 4.3.38 DLLs.