My app is accessed via ADFS single-sign-on. I have Javascript running on my main menu which previously (K2 4.7) accessed the worklist.sdk to get the current users tasks.
Under K2 5.2 we have to move to the Worklist REST API. K2 provide a link to using this (Using the Workflow REST API in JavaScript) however the example uses hard-coded username and password.
Does anyone know how to pass in the current user's username and password dynamically, i.e. not hard coded in the JS,
and not requiring the user to provide the password again?
If this can't be done it means current user can no longer access their tasks dynamically without additional sign-in.
Thanks in advance
Kevin