我是wso2的新手。现在我想将wso2ESB与CAS集成,我知道ESB运行在tomcat之上。我配置org.wso2.carbon.ui / 4.1.0 / src / main / resources / web / ESB-INF / web.xml如下。似乎CAS过滤器不起作用,但相同的配置工作正常在常见的Web应用程序上有人可以给我一些建议吗? 提前谢谢。
<filter >
<filter-name >CAS Single Sign Out Filter </filter-name >
<filter-class >org.jasig.cas.client.session.SingleSignOutFilter </filter-class >
</filter >
<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 >http://10.21.3.36:8080/cas/login </param-value >
</init-param >
<init-param >
<param-name >serverName </param-name >
<param-value >https://localhost:9443 </param-value >
</init-param >
<init-param >
<param-name >renew </param-name >
<param-value >false </param-value >
</init-param >
<init-param >
<param-name >gateway </param-name >
<param-value >false </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 >http://10.21.3.36:8080/cas/ </param-value >
</init-param >
<init-param >
<param-name >serverName </param-name >
<param-value >https://localhost:9443 </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 Single Sign Out Filter </filter-name >
<url-pattern >/* </url-pattern >
</filter-mapping >
<filter-mapping >
<filter-name >CAS Authentication Filter </filter-name >
<url-pattern >/carbon/* </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 >
<!-- *********************** -->
<listener >
<listener-class >org.jasig.cas.client.session.SingleSignOutHttpSessionListener </listener-class >
</listener >
<!-- *********************** -->
答案 0 :(得分:0)
请更新/repository/conf/tomcat/carbon/META-INF/context.xml中的过滤器以反映您的更改