cancel
Showing results for 
Search instead for 
Did you mean: 

How to avoid the Login window?

robin_zhu
Champ in-the-making
Champ in-the-making
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
1 REPLY 1

dhalupa
Champ on-the-rise
Champ on-the-rise
Try using runas attribute. Search for more detailed description here

http://wiki.alfresco.com/wiki/Web_Scripts#Creating_a_Description_Document


Kind regards,

Denis