SmartObjectServices and 401 Unauthorized error

  • 20 July 2016
  • 1 reply
  • 1 view

Badge +4

Hi,

 

When I'im trying to call SmartObjectServices method I've got 401 Unauthorized error.

 

My smo config is:

 

 

  <smoServices enableEndpoints="true" enableEvents="true" enableCrossDomainPolicy="false" specialCharacterReplacement="_" scheme="http" server="serverName" port="8888" serviceRoot="SmartObjectServices">
<wcf binding="wsHttpBinding" bindingConfiguration="wsHttpBinding+Windows" />
<rest binding="webHttpBinding" bindingConfiguration="webHttpBinding+Windows" />
<managedEndpoints>
<static>
<endpoints />
</static>
<excluded all="false" />
</managedEndpoints>
</smoServices>

 

Do any of you have ideas what's the reason?

 

Regards,

arnam

 


1 reply

Userlevel 5
Badge +18

Certain environments require the K2 Service Account to have an HTTP SPN set for the local machine where the endpoints are hosted. If 401 and 400 HTTP errors are encountered then the HTTP SPN must be set.


 


Example:


User: DomainK2ServiceAccountUser


HTTP/MachineName
HTTP/MachineName.Domain.com


 


Or on Cluster environments (if this is the endpoint URL)


HTTP/ClusterName
HTTP/ClusterName.Domain.com


 


https://help.k2.com/onlinehelp/k2blackpearl/devref/current/default.htm#Configuration2.html

Reply