hello ,
not knowing the problem i don't comment much...
can't you intercept the execute method of your task?
or (worst solution), cant you just define a special user for executing quartz job and put the code for instantiating contextholder & user
directly into the job?
sorry to say that i am not familiar with common attributes, in my usage of acegi i don' tuse them....
sorry, hope some acegi experts could answer your question... i m 'sort of newbie', i have used for what i needed, but i don't have
a complicated case. or usage
regards
marco
On 9/16/05, Achmad Arif Rachim <[EMAIL PROTECTED]> wrote:
I was thinking like that before. but how do i intercept quartz. This is becouse im using MethodSecurityInterceptor, every time targetMethod invoked by localhost it throws AuthenticationException.
Im using MethodDefinitionAttributes using commons-attributes. The idea was to make every method invocation passed security concern.
Unfortunately for method that was invoked by localmechine will throw AuthentificationCredentialsNotFoundException :(. I was wondering how to intercept quartz before invoking targetMethod, so i can put AuthenticationObject into ThreadLocal,... but seems doesnt have a clue. :(
On 9/16/05, Marco Mistroni <[EMAIL PROTECTED] > wrote:Hello,are you talking about problems in executing the Quartz job?Not sure if this could be a solution for you, buthave you tried to setup a secure ContextHolder during execution of the job, using a 'superuser'?
the superuser authenticates, you perform the task that needs to be done in the Quartz job, and then the useris unauthenticated......
HTHmarcoOn 9/16/05, Achmad Arif Rachim <[EMAIL PROTECTED] > wrote:Hi guys,
I'm using quartz to create daily reports. Unfortunately acegi seems unhappy and always thrown AuthentificationCredentialsNotFoundException "a valid SecureContext not found in RequestContext". I belive this is because SecurityEnforcementFilter did'nt populate AuthenticationObject into LocalThread. I've tried to use RunAsManager, but still it doesn't help.
Thanks