Using http session Id to authenticate to web services
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2010 02:49 AM
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
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
Labels:
- Labels:
-
Archive
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2011 04:22 PM
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?
