AnsweredAssumed Answered

How to avoid the Login window?

Question asked by robin.zhu on Jun 24, 2009
Latest reply on Jun 24, 2009 by dhalupa
I wrote a upload webscripts following the example guide.
http://wiki.alfresco.com/wiki/Web_Scripts_Examples

I try to modify the authentication type to <authentication>user</authentication>
Yes, indeed it skips the login window.
But  when I post the upload form, I recieve the following error.
net.sf.acegisecurity.AuthenticationCredentialsNotFoundException - A valid SecureContext was not provided in the RequestContext
net.sf.acegisecurity.intercept.AbstractSecurityInterceptor.credentialsNotFound(AbstractSecurityInterceptor.java:477)
   net.sf.acegisecurity.intercept.AbstractSecurityInterceptor.beforeInvocation(AbstractSecurityInterceptor.java:355)
   net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:77)
   org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
   org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:49)
   org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
……


It seems that, it must have an AuthenticationCredentical while uploading file.
So What should I do? To upload a file without "login in the login window".


Thanks a lot

Outcomes