Skip to main content


 

Symptoms


I tried “talking” to the REST (and ASMX) service from within a visual studio console application on Appit.
 

Diagnoses


Trying to log in with user account but that’s not working.
which is expected, because this account is for logging into the O365 and SharePoint online environment, the REST (https://xxxxxxx/K2Services/REST.svc) and ASMX (https://dev-xxxxxx.K2Services/ws.asmx) service are hosted somewhere else (provider hosted, outside O365).



 

Resolution

At this current time its not supported, the K2Services does not support the Claims or OAuth Authentication.
I.E. – you will not be able to auth with an AAD account.

The Appit team are working on making this available but this will only be in future iterations.

The preferred method of integrating with Appit from external applications is using the K2WebApi which is the same API our mobile applications use. These are available from

To start processes
http://your-appitinstance.com/k2api/api/process
Sample Inputs
http://your-appitinstance.com/k2api/api/process/Sample

Handle worklist items
http://your-appitinstance.com/k2api/api/worklistitem
Sample Inputs
http://your-appitinstance.com/k2api/api/worklistitem/Sample

These are not web services but rather require http POST and GET methods, I am liaising with the team to get you some details around the code need to get the necessary auth tokens for making the calls as I understand this is the tricky part.
 




 
Be the first to reply!

Reply