(Solved) Webscript and Authenticate

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2009 10:46 AM
Hello.
I have a question. I created a webscript which generates a report. The report have hyperlinks on Alfresco spaces.
At first login on page report user inputs login and password.
Can i browse the Alfresco spaces without repeated login and password request?
Thank you.
I have a question. I created a webscript which generates a report. The report have hyperlinks on Alfresco spaces.
At first login on page report user inputs login and password.
<webscript> <shortname>Status</shortname> <description>Report</description> <url>/sgnhp/status/args</url> <authentication>user</authentication> </webscript>
Hyperlinks are created so:<a href="/alfresco${inventoryNumbers.url}" target=_blank>${inventoryNumbers.properties.name}</a>
When i try to browse some Alfresco space using report hyperlinks Alfresco requests login and password again.Can i browse the Alfresco spaces without repeated login and password request?
Thank you.
Labels:
- Labels:
-
Archive
4 REPLIES 4
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2009 03:01 AM
Did you try calling your webscript under /alfresco/wcs/ instead of /alfresco/service/ :?:

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2009 03:38 AM
Thank you for your answer.
No, i didn't. How can i call it under /alfresco/wcs ?
Where can i read about it?
No, i didn't. How can i call it under /alfresco/wcs ?
Where can i read about it?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2009 04:08 AM
The /wcs (or "/wcservice") servlet uses Web Client authentication, whereas the "/s" or "/service" servlet uses HTTP Basic auth.
Using the wcs entry path will present users with the web client login page before executing the web script, which may or may not be what you want.
Your other option is to append a ticket onto your inventoryNumbers URL:
Mike
Using the wcs entry path will present users with the web client login page before executing the web script, which may or may not be what you want.
Your other option is to append a ticket onto your inventoryNumbers URL:
?ticket=${session.ticket}
Thanks,Mike

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2009 04:53 AM
Wow! It works!
Thanks a lot, Mike!

Thanks a lot, Mike!
