tomcat + cas_server + cas_client_official
来源:互联网 发布:puppy linux安装到u盘 编辑:程序博客网 时间:2024/05/16 06:15
software:
apache-tomcat-5.5.33 (need 2)
eclipse-j2ee
1.configure cas server
reference tomcat + ssl
2.configure cas client
create a dynamic web project casTest2, enable maven dependency management
create a index.html under WebContent
add the following to pom.xml:
<groupId>org.jasig.cas.client</groupId>
<artifactId>cas-client-core</artifactId>
<version>3.2.0</version>
<exclusions>
<exclusion>
<artifactId>servlet-api</artifactId>
<groupId>javax.servlet</groupId>
</exclusion>
</exclusions>
</dependency>
add the following to web.xml
<!-- 8081 is for cas client -->
<!-- 8443 is for cas server -->
<filter>
<filter-name>CAS Authentication Filter</filter-name>
<filter-class>org.jasig.cas.client.authentication.AuthenticationFilter</filter-class>
<init-param>
<param-name>casServerLoginUrl</param-name>
<param-value>https://localhost:8443/cas/login</param-value>
</init-param>
<init-param>
<param-name>serverName</param-name>
<param-value>http://localhost:8081</param-value>
</init-param>
</filter>
<filter>
<filter-name>CAS Validation Filter</filter-name>
<filter-class>org.jasig.cas.client.validation.Cas20ProxyReceivingTicketValidationFilter</filter-class>
<init-param>
<param-name>casServerUrlPrefix</param-name>
<param-value>https://localhost:8443/cas</param-value>
</init-param>
<init-param>
<param-name>serverName</param-name>
<param-value>http://localhost:8081</param-value>
</init-param>
</filter>
<filter>
<filter-name>CAS HttpServletRequest Wrapper Filter</filter-name>
<filter-class>org.jasig.cas.client.util.HttpServletRequestWrapperFilter</filter-class>
</filter>
<filter>
<filter-name>CAS Assertion Thread Local Filter</filter-name>
<filter-class>org.jasig.cas.client.util.AssertionThreadLocalFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>CAS Authentication Filter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>CAS Validation Filter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>CAS HttpServletRequest Wrapper Filter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>CAS Assertion Thread Local Filter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
depoly the web project to tomcat, port is 8081(amend the port so there is no conflict)
brows url http://localhost:8081/castTest2/index.html
- tomcat + cas_server + cas_client_official
- tomcat + cas_server + cas_client
- tomcat + cas_server + spring
- CAS SSO研究二:cas_server通过查询数据库验证用户名、密码正确性
- SSO单点登录 cas_server通过查询数据库验证用户名、密码正确性
- Tomcat
- Tomcat
- Tomcat
- tomcat
- TOMCAT
- tomcat
- tomcat
- tomcat
- TOMCAT
- Tomcat
- tomcat
- Tomcat
- Tomcat
- 何时在声明函数时使用EXTERNAL
- C# 中list的排序
- start_kernel->setup_arch->paging_init->bootmem_init() 之 2
- linux 串口概述
- Google网站翻译工具:帮您扩大全球受众群
- tomcat + cas_server + cas_client_official
- ubuntu 系统解决mysql连接问题(ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO))
- 程序员之路
- OpenGL材质和光照(转)part2
- 两大实时数据库的接口区别
- 监控软件DirectDraw求助
- info about differences between composition and aggregation
- win7开放80端口
- 现在的物价越来越高