Hello,
We are trying to access SmartObjects through an external WebApp. Let's say i have a SmartObject against the Active Directory, and now want to get all users and display them on a site hosted somewhere other than the K2 Server.
So I configured the K2HostServer.exe.config to enable REST Endpoints. For varifacation i check the endpoints URL to get a list of all the available endpoints.
http://pserver]:eport]/SmartObjectServices/endpoints/endpoints.xml
As Expected I find an entry for the GetList Method on the AD SmartObject.
If i now type in that URL in a browser at a clients machine, i do get a list of all users indeed. However, if i try to send an AJAX request from our WebApp i get a 401 Unautorized. How can i send authorization detail within the request?
Also if i try to open that URL from the K2 server itself, (logged in as a K2 admin account) i get prompted to enter my login Info. When i then enter the clients detail (the one from which i previously successfully was able to open the URL) I get a 400 Site not found.
I am very confused how authorizing access to those endpoints really work. Anyone could shed some light? Thanks in advance!
Nico