为WildFly AS 10中的Liferay Portal 6.2配置JOSSO Agent

1.应用的JOSSO Agent集成环境如下:

  • JavaEE容器,WildFly AS 10.0.0.Final
  • 应用,对于Liferay Portal 6.2来说就是Liferay的ROOT.war
  • JOSSO 1.8.10

2.应用的JOSSO Agent集成步骤如下:

1) 首先,将%JOSSO%/dist/agents/bin/3rdparty目录下的第三方类库(%JOSSO%/dist/agents/lib目录下的类库太多,没必要),复制到%JBOSS_HOME%/%/standalone/deployments/ROOT.war/WEB-INF/lib目录下。为了在多个应用中通用,也可以将类库以WildFly的类库模块的方式加入。

2) 其次,将%JOSSO%/dist/agents/bin目录下如下JOSSO Agent类库,复制到%JBOSS_HOME%/%/standalone/deployments/ROOT.war/WEB-INF/lib目录下:

  • josso-agents-bin-1.8.10-axis.jar
  • josso-agents-bin-1.8.10-jaxws.jar(可选)
  • josso-agent-shared-1.8.10.jar
  • josso-liferay6-agent-1.8.10.jar

 3) 然后,修改%JBOSS_HOME%/%/standalone/deployments/ROOT.war/WEB-INF/liferay-web.xml文件,添加JOSSO过滤器如下:

    <!-- This filter will provide security context, if present -->
    <filter>
        <filter-name>SSO Josso Filter</filter-name>
        <filter-class>org.josso.liferay6.agent.LiferaySSOAgentFilter</filter-class>
    </filter>

    <!-- User information will be available when accessing this URLs  -->
    <filter-mapping>
        <filter-name>SSO Josso Filter</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>

4) 最后,将%JOSSO%/dist/agents/config/liferay6/目录下的如下 JOSSO Agent配置文件,复制到%JBOSS_HOME%/%/standalone/deployments/ROOT.war/WEB-INF/classes目录下,并进行适当修改:

  • josso-agent-config.xml
  • portal-ext.properties
  • portal-log4j-ext.xml
  • log4j.dtd

你可能感兴趣的:(SSO,agent,liferay,10,wildfly,JOSSO,JOSSO)