cancel
Showing results for 
Search instead for 
Did you mean: 

Problem Share Cas Logout

carlosjl
Champ in-the-making
Champ in-the-making
Hello, I'm new with alfresco.

My environment consists of:

- Cas Server 3.5.2
- Alfresco Community 5.0.c

I configured share to validate with cas (cas-client-core-3.3.3) and all work fine. But I have the logout problem.
In share (web.xml):

   <filter>
      <filter-name>CAS Single Sign Out Filter</filter-name>
      <filter-class>org.jasig.cas.client.session.SingleSignOutFilter</filter-class>
   </filter>
   <filter-mapping>
      <filter-name>CAS Authentication Filter</filter-name>
      <url-pattern>/*</url-pattern>
   </filter-mapping>
   <listener>
      <listener-class>org.jasig.cas.client.session.SingleSignOutHttpSessionListener</listener-class>
   </listener>

But this does not work… or I need some settings.

I read about the possibility of extending logoutController in custom-slingshot-application-context.xml

Any ideas!!

Thank's for all.



13 REPLIES 13

pinux
Champ in-the-making
Champ in-the-making

Hi David,

could you briefly explain the steps you followed to successfully integrate CAS and Alfresco? I'm working with alfresco 5.0d and CAS 5.0 and also I am receiving share login page after CAS login.

Thanks in advance.

Pino

idwright
Star Collaborator
Star Collaborator

Hi Pino,

My guess is that your share-config-custom.xml is not pointing at the correct backend.

If you are using GitHub - wrighting/alfresco-cas: A project designed to show how to integrate Alfresco with CAS singl...  it defaults to http://localhost:8080/alfresco/...

I've just updated the README.md to give more instructions

pinux
Champ in-the-making
Champ in-the-making

Hi Ian,

thanks for your reply; anyway my share-config-custom.xml is pointing to correct backend (http://localhost:8080/alfresco/)
My software stack version is: Alfresco 5.1f (just updated), CAS 5.0 and your cas-client-core-3.4.1.jar (from the latest build of your project and deployed both in alfresco and share lib).

Edited the file /etc/java-cas-client.properties with the following value:

casServerLoginUrl=https://myhostname:8444/cas/login
serverName=https://myhostname:8443

ticketValidatorClass=org.jasig.cas.client.validation.Cas30ServiceTicketValidator
casServerUrlPrefix=https://myhostname:8444/cas

Thanks in advance!

Pino

Hi David,

I have updated the project now.

You are correct that you don't need the repo amp although it will now include the admin pages.

share-config-custom.xml is now not included by default and there are other changes to make it easier to deploy - see project for details.

I have managed to use the default SlingshotAlfrescoConnector for 5.1.g