AnsweredAssumed Answered

PI Web API Windows Service Authentication

Question asked by JamesIggulden on Apr 6, 2018
Latest reply on May 22, 2018 by JamesIggulden



We have a customer running the PI Web API as a Windows Service and with authentication set to 'Kerberos'.

It is possible to access the REST API using a browser (running on the same Windows Server) without being prompted for any credentials which indicates that native Windows Authentication is working (i.e. it is using the credentials of the logged-in user).

However, we also have a Java application running as a Windows Service (incidentally on the same server) where the 'logon as' user is set to an account known to the PI Web API.

The Java application is making HTTP requests to the same REST API but we consistently get 401's returned i.e. unauthorised. Our expectation was that, because the Java application is running as a Service and as a known user, the native Windows Authentication would simply work.

Any thoughts or suggestions welcome!