cancel
Showing results for 
Search instead for 
Did you mean: 

Using http session Id to authenticate to web services

pucfg1
Champ in-the-making
Champ in-the-making
Hi all,

I need to achieve the following scenario in Alfresco Share:
1. The user logs to Alfresco Share(using login and password),
2. The user creates a document and adds binary content to the document,
3. The user converts(using a java applet) the document content(my special conversion) and stores the modified version in a custom aspect property of type d:content
- the java applet needs to be called from a custom document action,
- the java applet uses Alfresco web services to read and store converted content,
- the user is supposed to insert his login and password only once(when logging to Share)

So I can`t use the user password or ticket to authenticate from an applet to web services.
In my opinion the best solution is to use an existing http session Id to authenticate from a java applet to Alfresco web services.

How can I achieve this?
Do I have to write custom authentication class and add it to alfresco?

Thanks in advance
1 REPLY 1

flopez
Champ in-the-making
Champ in-the-making
Hi I'm also trying to reuse an existing sessio to log in and use soap services somehow like AuthenticationUtils.startSession("admin", "adminpwd"); to get the WebServiceFactory.get"servicename" services in my java class, what's the right approach to do this by usen the current logged user's login/pwd and not having to hardcode the admin's?