【问题标题】:CAS Jboss AS7 HTTPS redirectCAS Jboss AS7 HTTPS 重定向
【发布时间】:2012-02-11 07:16:24
【问题描述】:

如何将 Jasig 的 CAS 配置为仅侦听 HTTPS 端口 (8443)?

我们将应用程序分为两部分,门户和 SSO 权限 (JASIG CAS)。两者都在 JBoss AS7 和不同的机器上运行。门户和 SSO 权限配置为从 HTTP (8080) 端口重定向到 HTTPS (8443) 端口

<subsystem xmlns="urn:jboss:domain:web:1.0" default-virtual-server="default-host">
    <connector name="http" protocol="HTTP/1.1" socket-binding="http" scheme="http" redirect-port="8443"/>
    <connector name="https" protocol="HTTP/1.1" socket-binding="https" scheme="https" secure="true">
        <ssl name="https" password="pass" certificate-key-file="/path_to_keystore.jks"/>
    </connector>
    <virtual-server name="default-host">
        <alias name="myapp.domain.com"/>
    </virtual-server>
</subsystem>
...
<socket-binding name="http" port="8080" fixed-port="true" interface="public"/>
<socket-binding name="https" port="8443" fixed-port="true" interface="public"/>

端口重定向在门户部分运行良好,但 CAS 忽略重定向并在 http (8080) 上也有效(显示有关非安全访问的信息)。

【问题讨论】:

    标签: jboss https cas jboss7.x


    【解决方案1】:

    对于正确的 java web 应用程序 SSL 配置是必要的,以使应用程序的某些部分在 web.xml 文件中得到保护。然后重定向完美无缺。

    <security-constraint>
         <web-resource-collection>
             <web-resource-name>sso secured pages</web-resource-name>
             <url-pattern>/*</url-pattern>
         </web-resource-collection>
         <user-data-constraint>
             <transport-guarantee>CONFIDENTIAL</transport-guarantee>
         </user-data-constraint>
    </security-constraint>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-03-08
      • 1970-01-01
      • 1970-01-01
      • 2019-09-20
      • 2013-02-06
      • 2015-08-31
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多