...
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>http://your.cas.server.com/cas/serviceValidate</param-value> </init-param> <init-param> <param-name>edu.yale.its.tp.cas.client.filter.serverName</param-name> <param-value>yourportal.server.com</param-value> </init-param> <init-param> <param-name>edu.yale.its.tp.cas.client.filter.proxyCallbackUrl</param-name> <param-value>http://your.casyourportal.server.com/uPortal/CasProxyServlet</param-value> </init-param> </filter> |
...
Set the login URL for the portal (it's important that you use HTTP encoding if your URL contains spaces, etc)
No Format |
---|
## Login URL, if specified the CLogin channel will display a Login link with ## this URL instead of the standard userName/password form. org.jasig.portal.channels.CLogin.CasLoginUrl=http://your.cas.server.com/cas/login?service=https://yourportalhttps%3A%2F%2Fyourportal.server.com/Logincom%2FLogin |
Set the logout URL for the portal (it's important that you use HTTP encoding if your URL contains spaces, etc)
No Format |
---|
## Answers where the user will be redirected when log out occurs. Each security context can have one.
## (See comments in the LogoutServlet class)
## It would be better to escape the value of the url parameter, but since there are no parameters on the
## unescaped URL and since there are no further parameters on the logout URL, this does work.
logoutRedirect.root=http://your.cas.server.com/cas/logout?url=https://yourportal.server.com/Login
|
Cleaning up
Remove the dependency for the embedded CAS server by deleting the uportal-portlets-overlay/cas directory.
Deploying your changes
Code Block |
---|
ant clean deploy-war
|
Testing it
JA-SIG hosts a CAS server backed by Jira for user accounts. So you can create an account in JA-SIG Jira (you should be doing this anyway so you can comment on uPortal issues and post bugs and patches), create a user with the same name as your JA-SIG Jira account in your portal (or allow uPortal to auto-create accounts), and then you can try out using JA-SIG's CAS server to authenticate to your uPortal.