AnsweredAssumed Answered

How To Bypass/Hardcode Authentication

Question asked by himanshu on Nov 28, 2008
Latest reply on Dec 1, 2008 by himanshu

I am creating a web script that returns me data from a particular file from a web project.
In order to access these files alfresco asks for the login details. I want to bypass this step as these scripts will be called from within another application.

I am able to get the files from guest home by passing the parameter guest=true as follows:

However, for the files from a wcm project repository, it needs admin privileges.
Is there any way i can bypass this authentication step, or hardcode the username and password(admin:admin for e.g.) in url request or the webscript.
(PS: I do not want to add headers to my http request, please provide a different solution)

Thanks in advance