Fawad,
I think it will work if you use
root=edu.yale.its.tp.portal.security.YaleCasFilteredContextFactory
as documented in the No Frills Guide to CASifying uPortal that you
link. That approach requires the Yale-developed casclient.jar and
cas-security-provider.jar. I believe these ship with uPortal 2.5.3.
uPortal CASification is presently in an unfortunate place where there's
a JA-SIG Java CAS client library that duplicates the functionality of
the Yale Java CAS client and uPortal security contexts, but the
documentation and particularly the uPortal source have not caught up
with these changes.
Andrew
Fawad Rashid wrote:
Hi
I have managed to setup CAS with
SSO using SSL, i have setup a CAS server which is authenticating
properly. Now i need to CASify a uPortal deployment. My CAS server
deployment should authenticate the uPortal deployment. Is there a guide
around somewhere for achieving this, i have gone through the mailing
list but so far i havent found what i am looking for. I am using CAS 3.0.7 & uPortal 2.5.3.
I have already tried the following guide but i believe it is a Yale
implementation http://www.ja-sig.org/wiki/display/CASC/No+Frills+CASify+uPortal
Changes that i have made are as follows
Security.properties
=========================================================
#
This is the factory that supplies the concrete authentication class
root=org.jasig.cas.client.integration.uportal.CasSecurityContextFactory
#root=org.jasig.portal.security.provider.SimpleSecurityContextFactory
#root.cas=org.jasig.portal.security.provider.cas.CasFilteredSecurityContextFactory
#root=org.jasig.portal.security.provider.YaleCasContextFactory
credentialToken.root.cas=ticket
=========================================================
=========================================================
web.xml
<filter>
<filter-name>CAS Validate Filter</filter-name>
<filter-class>edu.yale.its.tp.cas.client.filter.CASValidateFilter</filter-class>
<init-param>
<param-name>edu.yale.its.tp.cas.client.filter.loginUrl</param-name>
<param-value>https://localhost:8443/cas/login</param-value>
</init-param>
<init-param>
<param-name>edu.yale.its.tp.cas.client.filter.validateUrl</param-name>
<param-value>https://localhost:8443/cas/serviceValidate</param-value>
</init-param>
<init-param>
<param-name>edu.yale.its.tp.cas.client.filter.serverName</param-name>
<param-value>localhost:8088</param-value>
</init-param>
</filter>
<filter>
<filter-name>CAS Receipt Cacher</filter-name>
<filter-class>edu.yale.its.tp.cas.client.filter.StaticCasReceiptCacherFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>CAS Validate Filter</filter-name>
<url-pattern>/Login</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>CAS Receipt Cacher</filter-name>
<url-pattern>/Login</url-pattern>
</filter-mapping>
===========================================================================
I
am getting the following error (http://localhost:8088/uPortal/)
Using the default SimpleSecurityContextFactory
everything works fine expect that i have to relogin to the uPortal
using the uPortal login page.
uPortal Error
Sorry, but uPortal encountered an error that is preventing it from
rendering. The error must be corrected by system administrators. Try
again later.
_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas
|
_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas