Ok, I realize I'm a new member and may not know a whole lot about Acegi Security, but would someone please answer one of my posts![]()
I finally figured out how to protect service method invocations using MethodSecurityInterceptor; however now I am getting the following error when trying to run JUnit tests on my Service methods:
Any clues as to why this is happening?Code:An Authentication object was not found in the SecurityContext org.acegisecurity.AuthenticationCredentialsNotFoundException: An Authentication object was not found in the SecurityContext at org.acegisecurity.intercept.AbstractSecurityInterceptor.credentialsNotFound(AbstractSecurityInterceptor.java:339) at org.acegisecurity.intercept.AbstractSecurityInterceptor.beforeInvocation(AbstractSecurityInterceptor.java:254) at org.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:63) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:203) at $Proxy23.createNewSar(Unknown Source) at halo.service.SarServiceTest.testCreateNewFederalSar(SarServiceTest.java:163) at org.springframework.test.ConditionalTestCase.runBare(ConditionalTestCase.java:69)


