cancel
Showing results for 
Search instead for 
Did you mean: 

I want to create a web script that asks for authentication

aashishraj24
Champ in-the-making
Champ in-the-making
Hi,

I am a user of Alfresco 4.0c.I have created a Hello World web script example by following the documents given at http://docs.alfresco.com/4.0/index.jsp?topic=%2Fcom.alfresco.enterprise.doc%2Ftasks%2Fws-hello-world....

                                                                                                                       I want to create another  web script but with authentication that asks for username and password once i invoke the web script,how can i do it??? please help me out.i followed the steps given at http://docs.alfresco.com/4.0/index.jsp? but it is not asking for authentication
2 REPLIES 2

openpj
Elite Collaborator
Elite Collaborator
You have to add in the XML descriptor file the "authentication" element in the following way if you need that only a user of the repo can execute the script:
<authentication>user</authentication>

Or the script could be executable only by administrators in this way:
<authentication>admin</authentication>
Hope this helps.

aashishraj24
Champ in-the-making
Champ in-the-making
Thanks it solved my problem