-
Re: Basic Authentication fails with Pi-WebAPI
dngNov 18, 2015 6:28 PM (in response to intercap)
2 of 2 people found this helpfulHi Keith,
Did you have multiple authentication methods configured for PI Web API? Different clients can have different behavior when multiple authentication methods are selected, and there is a particular issue affecting Google Chrome is both Kerberos and Basic authentication are enabled. For more information, please see this Live Library page (https://livelibrary.osisoft.com/LiveLibrary/content/en/web-api-v4/GUID-DA5C6E2D-46FE-4961-AF95-642E7B309D9F).
Furthermore, to see the source of the error, open up Chrome developer tools (F12) and take a look at the request header. For basic authentication, you should see the request header with something like:
Authorize: Basic xxx
where xxx is the base64-encoded string for username:password. Check to make sure the authorization header is included in your request, and make sure your username and password combination is correct. Did chrome ever prompt you for the username and password when you first navigate to a PI Web API page?
-
Re: Basic Authentication fails with Pi-WebAPI
intercap Nov 19, 2015 3:17 AM (in response to dng)Thanks Daphne.
It was the combination of both authentication methods. My recollection is that it was working with both methods before though, so I am not sure what changed. Possibilities include an OS update, and a Pi connector we installed for test purposes. In any event, we'll update our Python libraries to support Kerberos and will either set up a second Pi WebAPI server for Chrome and Firefox support, or will punt on Chrome and Firefox for now (haven't checked Safari).
-
Re: Basic Authentication fails with Pi-WebAPI
lmlcochNov 19, 2015 3:44 AM (in response to intercap)
2 of 2 people found this helpfulYou should be able to use Kerberos authentication in Firefox/Chrome if you configure them properly.
See the KB below for details:
KB01223 - Kerberos and Internet Browsers
-
-