...
Edit your deployed web.xml for your uPortal to map the required filters.
Code Block | ||||
---|---|---|---|---|
| ||||
<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.validateUrl</param-name> |
...
<param- |
...
value>https://secure.its.yale.edu/cas/ |
...
serviceValidate</param-value> |
...
</init-param> |
...
<init-param> |
...
<param-name>edu.yale.its.tp.cas.client.filter.serverName</param-name> |
...
<param-value>hkg2.cis.yale.edu:8080</param-value> |
...
</init-param> |
...
<init-param> |
...
<param-name>edu.yale.its.tp.cas.client.filter.proxyCallbackUrl</param-name> |
...
<param- |
...
value>https://hkg2.cis.yale.edu/uPortal/ |
...
CasProxyServlet</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> |
...
Code Block | |
---|---|
xml | xml
|
Using it
To log into your CASified Portal, you follow a URL to your CAS server with the URL-encoded URL of your uPortal Login servlet as the "service" request parameter. Your uPortal login URL is something like: http://someschool.edu/uPortal/Login and your CAS server URL is something like https://secure.school.edu/cas/login and so the URL you should click to begin the login proccess is something like: https://secure.school.edu/cas/login?service=http%3A%2F%2Fsomeschool.edu%2FuPortal%2FLogin