Jasig 取消ssl

来源:互联网 发布:日志分析软件 编辑:程序博客网 时间:2024/06/08 15:53
以下方式禁用ssl的检查:
1.在deployerConfigContext.xml中,找到org.jasig.cas.authentication.handler.support.HttpBasedServiceCredentialsAuthenticationHandler的配置,加入属性requireSecure并将其值设置为false。
2.在WEB-INF/spring-configuration,将ticketGrantingTicketCookieGenerator、warnCookieGenerator 配置文件中的属性 cookieSecure 的值改为 false

重启cas。

可选:

如果不希望看到这个提示:


则可以直接在WEB-INF\view\jsp\default\ui路径下casLoginView中把一下代码注释即可:

<c:if test="${not pageContext.request.secure}"><div id="msg" class="errors">    <h2>Non-secure Connection</h2>    <p>You are currently accessing CAS over a non-secure connection.  Single Sign On WILL NOT WORK.  In order to have single sign on work, you MUST log in over HTTPS.</p></div></c:if> 




0 0
原创粉丝点击