AnsweredAssumed Answered

Accessing PI Web API Channels from Dotnet Core app using Windows Authentication

Question asked by Egeskov on Jun 18, 2019
Latest reply on Jun 18, 2019 by Egeskov

We are having trouble authenticating a dotnet core 2.2 application using windows authentication.

We are trying to access the channels operation in the Web API as described in the Sample C# Client in the Channels (Core Services) documentation. With the addition of setting:

webSocket.Options.UseDefaultCredentials = true;

It works in a .NET Framework 4.6.1 application, but the Dotnet Core 2.2 application gets the following error reply!

Cannot connect to the PI Data Archive. Windows authentication trial failed because insufficient privilege to access the PI Data Archive. Trust authentication trial failed because insufficient privilege to access the PI Data Archive.

If the full framework application is run before the dotnet core application the latter also works.

After restarting the PI Web API, the dotnet core application stops working until the full framework application is run again.

Does anybody know if there are unsupported features in PI Web API around dotnet core and Windows Authentication?

Outcomes