cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco Web Script Portlet rivet

rivetlogic
Champ on-the-rise
Champ on-the-rise
AWPr

AWPr is a JSR-168 portlet that can be used to expose remote Alfresco Web scripts, including those that need user authentication. With the help of a custom Alfresco authentication component that we wrote the portlet can carry the user credentials from the portal to Alfresco, authenticate the user in Alfresco and retrieve a ticket that can be used during all subsequent interactions between the end-user, the portlet and ultimately the Alfresco Web script itself.

Motivation for AWPr

When integrating Alfresco Web scripts with JBoss Portal or Liferay Portal AWPr alleviates the need for having to deploy all of Alfresco inside the portal as is the case when using Alfresco's OOTB (out-of-the-box) Web script portlet for Alfresco/Portal integration.

AWPr is also highly configurable. Through the use of portlet preferences you can create multiple instances of AWPr and configure each one with a different Web script URL and a set of parameters with default values if needed. The instance will then RESTfully fetch the result of the Web script's render phase and carry that over to the portlet finally rendering it on the screen within the confines of the portlet window.

It is hence possible to run two instances of AWPr on a single portal page where each instance is exposing a different Web script even if those Web scripts are hosted on two different Alfresco servers regardless of their geographic location.

AWPr lives here:
http://wiki.rivetlogic.org/display/AWPr/

Feel free to ask questions about AWPr in this thread.

–Alaaeldin
125 REPLIES 125

eduardoc
Champ in-the-making
Champ in-the-making
Hi,

I have Liferay and Alfresco authenticating through CAS. Can I use AWPr in this scenario?

Thanks!

eduardoc
Champ in-the-making
Champ in-the-making
Rivet, can you help me?  😎

rivetlogic
Champ on-the-rise
Champ on-the-rise
Hi,

AWPr uses STAr for SSO between Liferay and Alfresco. AWPr does not support CAS or other authentications.
It is possible to replace STAr with CAS. All the Restful calls from AWPr will need to include the CAS tickets.

Best Regards,
Shagul

lpiccoli
Champ in-the-making
Champ in-the-making
hi there

http://blogs.rivetlogic.com/blog/category/jboss-portal/

after reading your blog post about jboss-portal, i saw a screen shot of a 'document library' web script. it looks awesome.

is that document library script available?

many thanks

-lp

rivetlogic
Champ on-the-rise
Champ on-the-rise
Hi,

Yes, that Web script is available and is a rewrite of Alfresco MySpaces Web script. We called it AWPrMySpaces. We packaged it in an AMP that can by downloaded from AWPr's download page. You can also use this direct link to get the AMP.

You need to use something like AWPr to be able to make use of this Web script inside of Liferay or JBoss Portal.

Hope this helps,

–Alaaeldin

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

I would know if Awpr portlet works with Alfresco 3.2. In that last version of alfresco, the Authentication subsystem has changed, and,awpr support that..?

I use Cas and Ldap too, is that a problem?

Regards

rivetlogic
Champ on-the-rise
Champ on-the-rise
Hi,

It should work on 3.2. LDAP should not be a problem with STAr, but SSO (through authentication filters) would require some code changes.

–Alaaeldin

meritant
Champ in-the-making
Champ in-the-making
Hello Alaaeldin,

AWPr looks really great, thank you for contributing it to the community! I managed to get the AWPr My Spaces Web script working, but unfortunately Alfresco (3.2 CE) creates for every user an account instead of assigning the matching Alfresco-User. Liferay (5.2.3) and Alfresco do have the exact same users in it, same e-mail-addresses, Liferay screennames matches Alfresco's user names and Home Space names, what am I doing wrong?

I already checked my alfresco.war using alfresco-mmt-3.2.jar list, modules "AWPrExampleWebScripts" and "SecureTokenAuthenticationRivet" are installed and I used the chaining-authentication-context.xml from your wiki-page.

Any help would be much appreciated, thank you in advance.

rivetlogic
Champ on-the-rise
Champ on-the-rise
Hi,

Thanks for the kind words. We haven't had a chance to test AWPr with Alfresco 3.2 yet. But I think it should work unless Alfresco's chaining authentication XML changed since Alfresco version 3.1.

I'll update this thread when we get around to trying it out.

Cheers,

–Alaaeldin

nowhere
Champ in-the-making
Champ in-the-making
Hi all,
I have a problem with portlet authentication:
I have a webscript requiring user autenthication, but if I log in Liferay with an user id not in alfresco I can see webscript ftl, also if I expected to see Alfresco login request. It apperead sometime, but I can't reproduce case now.
I disabled "createMissingPeople" properties…where am I in wrong? What is happening? I expected to get not logged in alfresco in that case.
It's very important to me, can anyone help me?
Thanks in advance!

Greets,
Nowhere