I've a workflow that use a business layer dll. This dll is also used by other software module (like a web app).
In this DLL, there is a role based authorisation using attribute, which means that if the current thread principal doesn't have the correct roles, an exception is throw.
My workflow is used by a WCF app, everything works fine when a WCF call start an activity: the WCF have set the correct Identity with roles
But if my workflow contains a timer, when this timer wake up the workflow so that it continue, there is no Identity set anymore, and so using the business layer dll thrown an exception.
Do you have any idea on how, in the workflow, I can automatically set back the Identity ?
I saw that in WF4 I can make a custom operation context and use it to restore the previous identity (the identity used before the timer). But is it anything that can be done in WF3 ?
Tx a lot
View Complete Post