cancel
Showing results for 
Search instead for 
Did you mean: 

Web Script CAS login redirect

nmcminn
Champ in-the-making
Champ in-the-making
Hello all,

We are working on a project with Liferay 5.1.2, Alfresco Labs 3b, and CAS.  So far everything is working _mostly_ as expected, but we have one vexing problem I can't seem to figure out.

We have several other web apps in which we would like to embed some of the alfresco web scripts that require authentication. I found on the forums that if you access the services via the wcservice URL, Alfresco will use whatever Authenticator is configured for the web client.  In our case this is a CAS authenticator.  Yay!  We already use CAS to provide SSO between Alfresco and Liferay, so this should be easy, right?  Just pop the service URL into an iFrame, and let CAS do its thing.

This is where things get frustrating.  The first time we hit a service, Alfresco bounces the request over to CAS (as expected).  However, the URL that Alfresco is passing to CAS in the "service" parameter is always "alfresco/faces/jsp/login.jsp".  In order for any kind of deep linking to work, Alfresco should be passing the original request URL.  Once CAS validates the ticket, it forwards the browser back to the URL in the "service" parameter.  Subsequent hits to the services work exactly as intended, without any redirects, since the CAS ticket has already been validated.

My question is:  How can I configure Alfresco to pass the original request URL to CAS in the "service" parameter, instead of the login page URL?

Thanks for any assistance you can provide.
4 REPLIES 4

jonas
Champ in-the-making
Champ in-the-making
The full integration is here:

http://liferay.cignex.com/

Liferay Portal (v5.1.2) and Alfresco Portlets (v3.0.0 E: Alfresco Client, My Spaces, Document List, My Tasks, My Web Files, and My Web Forms); - A) full RESTFul Integration - making content-rich flashes (e.g., SWF, Video, Game, Slideshow, Video Queue, Video List, Play-list) available for Journal Articles;  - B) Ad Server OpenX Integration

…..

Good Luck!

nmcminn
Champ in-the-making
Champ in-the-making
Thanks for the info, but that is a TON of stuff to dig through for the answer to one small config issue, and didn't really answer the question in a way that others can use.

Do you happen to remember what steps you took during the integration to make deep linking into Alfresco work when a CAS sign-on has already been done, per the original question?

fantommy
Champ in-the-making
Champ in-the-making
Hello,

Does anyone have a solution for this. I'm having exactly the same problem and I'm not using Liferay.

nmcminn
Champ in-the-making
Champ in-the-making
I got your email, and I still do not have a solution to this issue.  Everything else with CAS works as intended, but direct deep linking does not work.  I have not tried this yet with the latest version of Labs, have you?