cancel
Showing results for 
Search instead for 
Did you mean: 

How To Bypass/Hardcode Authentication

himanshu
Champ in-the-making
Champ in-the-making
Hi,

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:
http://localhost:8080/alfresco/service/getxml?guest=true

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

Regards
Himanshu
1 REPLY 1

himanshu
Champ in-the-making
Champ in-the-making