cancel
Showing results for 
Search instead for 
Did you mean: 

Managing Sessions

dooley
Champ in-the-making
Champ in-the-making
I was wondering if it is possible to establish a session at login that would allow that user to access webscripts in the webscripts home without prompting them for a username and password?
1 REPLY 1

jenglert
Champ in-the-making
Champ in-the-making
Hey David,
  There are a number of ways to do this.  Firstly, how are you consuming the webscripts.  If you are consuming them with some type of Java client I would recommend using the HTTPClient for Jakarta commons.

http://jakarta.apache.org/httpcomponents/httpclient-3.x/

This client affords you the ability to use preemptive authentication.  You can also use connection pooling and other goodies.

Also, you can authenticate using the alf_ticket parameter.  Just pass the parameter in with a valid ticket.  I can't recall where the specifics of this are.

Also, security concerns aside, you could just open up the webscript with no authentication.

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