display form with secured service
After making our services secured, some of our workflows have stopped working - hanging up in the Disply Form activity. I played around with creating a token variable and assigning it a value in the GetMapServiceInfo activity but I'm stuck with what to change in the Display Form activity to take use of this token. Any Ideas?
0
-
Assign it in the Runtime Modifications of the form to a token property of a form item, e.g. for an AutoCompleteBox: form.Find(Of AutoCompleteBoxFormItem)("AutoCompleteBox1").Token = yourtokenvariable0 -
What is your the lifespan of your short-lived token? Not sure if this will apply to your situation or not but here's what we've found recently.
The problem with autocomplete form item is that your token gets assigned when the form loads but if your user doesn't submit a query (i.e. enter the minimum amount of characters into the autocomplete box) before the short-lived token expires, then it will sent an expired token and the form doesn't know what to do with the 'Expired Token' JSON message that gets sent back.
We removed our autocomplete box in some applications because our short-lived token is only good for 1 or 2 minutes and there is good likelyhoood that the user will not have finished searching for features before the token expires.
What the form really needs is a link to a getToken acivity so that it will get a new token before it attempts the autocomplete.
Peter.0 -
Nico,
Thank you very much. That worked like a charm!
Gary0
Please sign in to leave a comment.
Comments
3 comments