Advanced web scripts
Now that you have the basics under your belt, let's look at a few advanced web script topics.
Dealing with web script authentication
How web scripts authenticate depends on the runtime you are using. HTTP-based web scripts, such as the ones you built to work with whitepapers and ratings, are configured out of the box to use basic authentication. If you invoke a web script that requires a higher level of authentication than what's already taken place, the browser will present a basic authentication login dialog.
If you have Alfresco configured to leverage an SSO provider such as CAS, web scripts will leverage the session created when the user logs in to the centralized login page. The Chapter 10, Security, contains instructions for installing CAS and integrating it with Alfresco and Alfresco Share.
If you are writing your own web pages that need to invoke authenticated web scripts, one approach is to use a web service call to get a ticket. The ticket is then added to the...