We are developing an ASP.NET web application that users could use to query PI data via AF SDK. As of now, we do the following to get the AFDatabase:
PISystems myPISystems = new PISystems();
PISystem myPISystem = myPISystems["AFServer"];
AFDatabase AFDb = myPISystem.Databases["AFDatabaseName"];
Once we have the "AFDb" information, we use this to get the AFValues for AF Elements.
Question 1: We want to make sure that we use windows authentication when a user connects to PI AF via the web application. When we do step 3, does the AF SDK ".Connect()" using the USER's identity OR uses the IIS process identity ?
Question 2: How can we enforce using impersonation via AF SDK ?