See this reply from me in this thread for how you might do this. Also, there are docs for authentication to your WF API in the reference.