08-15-2006 05:45 AM
08-15-2006 06:08 AM
<filter>
<filter-name>Authentication Filter</filter-name>
<!– LOCAL CHANGES
<filter-class>org.alfresco.web.app.servlet.AuthenticationFilter</filter-class>
–>
<!– BEGIN LOCAL CHANGES –>
<filter-class>edu.yale.its.tp.cas.client.filter.CASFilter</filter-class>
<init-param>
<param-name>edu.yale.its.tp.cas.client.filter.loginUrl</param-name>
<param-value>https://myserver:8443/cas/login</param-value>
</init-param>
<init-param>
<param-name>edu.yale.its.tp.cas.client.filter.validateUrl</param-name>
<param-value>https://myserver:8443/cas/serviceValidate</param-value>
</init-param>
<init-param>
<param-name>edu.yale.its.tp.cas.client.filter.serviceUrl</param-name>
<param-value>http://myserver:8090/alfresco</param-value>
</init-param>
<!– END LOCAL CHANGES –>
</filter>
01-25-2007 11:34 AM
hi folks,
i've been tasked with evaluating alfresco for my company. it seems like a really cool product. after playing around with the default install for a bit and r'ing tfm's, i've attempted unsuccessfully to get SSO via CAS working.
first i tried to use the acegi hooks in the authentication context file but couldn't seem to get things working via that route. things were further complicated by the bundled version of acegi being outdated wrt the latest upstream version (and hence the documentation i had was not fully accurate). furthermore, the latest version has a different namespace (org.acegisecurity instead of under net.sf), with some subtle yet non-backwards-compatible API changes.
i'm now trying to authenticate via CAS directly, by replacing the authentication filter in web.xml. i've had more success with this route, though not much. now when i request /alfresco, i'm sent to the cas login page, and after authenticating i'm sent back to alfresco (so far so good), but then alfresco sends me a 302 header sending me back to cas, which thinks there's nothing wrong and 302's me back to alfresco, etc etc.
i saw a similar problem in the forums that was solved by recompiling alfresco with a different name for ARG_TICKET in baseServlet.java, which i've tried without success.
does anyone have an idea of what else could be a problem? any help would be greatly appreciated!
sean
01-29-2007 03:00 AM
01-29-2007 09:53 AM
01-29-2007 10:16 AM
<filter>
<filter-name>CAS Filter</filter-name>
<filter-class>edu.yale.its.tp.cas.client.filter.CASFilter</filter-class>
<init-param>
<param-name>edu.yale.its.tp.cas.client.filter.loginUrl</param-name>
<param-value>https://myserver:8443/cas/login</param-value>
</init-param>
<init-param>
<param-name>edu.yale.its.tp.cas.client.filter.validateUrl</param-name>
<param-value>https://myserver:8443/cas/serviceValidate</param-value>
</init-param>
<init-param>
<param-name>edu.yale.its.tp.cas.client.filter.serviceUrl</param-name>
<param-value>http://myserver/alfresco/faces/jsp/login.jsp</param-value>
</init-param>
</filter>
<filter>
<filter-name>Authentication Filter</filter-name> <filter-class>org.alfresco.web.app.servlet.CASAuthenticationFilter</filter-class>
</filter>
<filter>
<filter-name>WebDAV Authentication Filter</filter-name> <filter-class>org.alfresco.repo.webdav.auth.AuthenticationFilter</filter-class>
</filter>
<filter>
<filter-name>Admin Authentication Filter</filter-name>
<filter-class>org.alfresco.web.app.servlet.AdminAuthenticationFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>CAS Filter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>Authentication Filter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>WebDAV Authentication Filter</filter-name>
<url-pattern>/webdav/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>Admin Authentication Filter</filter-name>
<url-pattern>/faces/jsp/admin/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>Admin Authentication Filter</filter-name>
<url-pattern>/faces/jsp/categories/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>Admin Authentication Filter</filter-name>
<url-pattern>/faces/jsp/groups/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>Admin Authentication Filter</filter-name>
<url-pattern>/faces/jsp/users/delete-user.jsp</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>Admin Authentication Filter</filter-name>
<url-pattern>/faces/jsp/users/users.jsp</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>Admin Authentication Filter</filter-name>
<url-pattern>/faces/jsp/dialog/system-info.jsp</url-pattern>
</filter-mapping>
01-29-2007 10:45 AM
01-29-2007 10:58 AM
Hi Alessandro
Thanks for reporting back your solution!
The intention is make NovellIChainsHTTPRequestAuthenticationFilter more configurable. One option will be to specify the session attribute in which to find the user id. Does this make CAS integration purely configuration?
Cheers
Andy
02-05-2007 04:29 PM
02-07-2007 03:36 AM
What version of the CAS client are you using? Are you using cas-web.war from the Liferay site? Where did you put the casclient.jar?
How do you relate alfresco's user with the CAS user? I'm using liferay.com.1 from the liferay-CAS installation and when I access the Alfresco portlet I still need to login.
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.