Hi andy,

Im using your suggestion to use SecurityFacade. i found very interesting result, yes its working but not 100% well. Every successfull invocations theres periode where AuthenticationCredentialsNotFoundException thrown. I found every 16 successful invocation always have one failed down :(

I think the problem becouse we can only invoke securityFacade.authenticateUser inside targetMethod. Im using methodSecurityInterceptor with commons-attributes, so it will intercept any kind of method before they were being called. the issue will be "how to intercept QUARTZ targetMethod before invoked" so i can call securityFacade.authenticateUser.

Wish Ben can help me on this.

On 9/16/05, Andy Depue <[EMAIL PROTECTED]> wrote:
On Friday 16 September 2005 04:17 am, Achmad Arif Rachim 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. :(
>
You will need to authenticate a user in your quartz job before it actually
calls your secured method.  See this thread:
http://article.gmane.org/gmane.comp.java.springframework.acegisecurity.devel/984
In particular, take a look at this message:
http://article.gmane.org/gmane.comp.java.springframework.acegisecurity.devel/1000
I'm not yet familiar with Quartz, so it's up to you (or someone else on this
list) to figure out how to accomplish this in relation to Quartz, but it
should be simple enough to pull off.

  - Andy


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Home: http://acegisecurity.sourceforge.net
Acegisecurity-developer mailing list
Acegisecurity-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer

Reply via email to