I installed piwebapi package in R. Now I am getting problem with the authentication. I used basic authentication which works perfectly well but kerberos is not working.
Could you provide more information on your issue? Please describe your problem and environment authenticating with Kerberos in more detail.
A quick check is to see the PI Web API authentication settings in the configuration database in your AF Server.
Please see Kerberos is added in AuthenticationMethods attribute, if it is not added already.
I am using the following command
useKerberos <- TRUEusername <- NULLpassword <- NULLvalidateSSL <- TRUEdebug <- TRUE
address <- "Server link"piWebApiService <- piwebapi$new("https://address/piwebapi/", useKerberos, username, password, validateSSL, debug)
getting the following error:
HTTP/1.1 401 Unauthorized<- Transfer-Encoding: chunked<- Content-Type: application/json; charset=utf-8<- Content-Encoding: gzip<- Server: Microsoft-HTTPAPI/2.0<- X-Frame-Options: SAMEORIGIN<- WWW-Authenticate: Basic realm="PI Web API"<- Date: Mon, 29 Jul 2019 05:36:07 GMT<-  "HTTP Status code is 401." "Authentication Error: Please review PI Web API security and allowed authentication methods." "Error: Authorization has been denied for this request.">
where as if I am using the basic authentication, it is working.
It seems that you are only sending or received Basic authentication header.
Could you try below URL and see if Kerberos is included?https://address/piwebapi/system/configuration
getting same error
You can try using basic authentication for now or can try on the PI Web API local machine.
Retrieving data ...