无法使用Orbeon-Auth + Tomcat 8连接Orbeon远程服务器

时间:2016-02-12 07:15:25

标签: basic-authentication orbeon

我想使用Orbeon提供的orbeon-auth应用程序连接到运行在Tomcat 8上的Orbeon远程服务器。

  1. 我在远程服务器中创建了用户和角色 的tomcat-users.xml中。
  2. 在server.xml中使用默认域。
  3. 在properties-local.xml中添加了以下属性。
  4. 
    
    for root, dirs, files in os.walk("Directory to be analyse"):
        for file in files:
            if file.endswith('.log'):
    
    
    
    

    • 我的web.xml包含基于角色配置的BASIC身份验证。

    
    
    <!-- Security Settings -->
    <property as="xs:string" name="oxf.fr.authentication.method" value="container" />
    <property as="xs:string" name="oxf.fr.authentication.container.roles" value="orbeon-service" />
    <property as="xs:anyURI" processor-name="oxf:page-flow" name="authorizer" value="/orbeon-auth" />
    <property as="xs:string" name="oxf.http.state" value="none" />
    <property as="xs:string" name="oxf.http.forward-headers" value="Cookie" />
    <property as="xs:string" name="oxf.http.forward-cookies" value=" JSESSIONID
           iPlanetDirectoryPro" />
    <property as="xs:integer" name="oxf.http.so-timeout" value="0" />
    <property as="xs:boolean" name="oxf.http.exceptions" value="true" />
    
    <property as="xs:string" processor-name="oxf:page-flow" name="page-public-methods" value="GET HEAD POST PUT DELETE" />
    <property as="xs:string" processor-name="oxf:page-flow" name="service-public-methods" value="GET HEAD POST PUT DELETE" />
    
    <property as="xs:anyURI" name="oxf.url-rewriting.service.base-uri" value="http://localhost:8080/forms" />
    <property as="xs:anyURI" name="oxf.fr.persistence.exist.uri" value="http://localhost:8080/forms/fr/service/exist" />
    <property as="xs:anyURI" name="oxf.fr.persistence.exist.exist-uri" value="http://localhost:8080/forms/exist/rest/db/orbeon/fr" />
    &#13;
    &#13;
    &#13;

    但是,对于所有这些配置,当我尝试在本地服务器中提供orbeon-admin凭据时,它无法进行身份验证,而是提供此日志。

    <security-constraint>
      <display-name>No Restriction</display-name>
      <web-resource-collection>
        <url-pattern>/fr/service/*</url-pattern>
        <url-pattern>/fr/style/*</url-pattern>
        <url-pattern>/fr/login</url-pattern>
        <url-pattern>/xforms-server</url-pattern>
        <http-method>GET</http-method>
        <http-method>POST</http-method>
      </web-resource-collection>
    </security-constraint>
    <security-constraint>
      <display-name>With Restriction</display-name>
      <web-resource-collection>
        <web-resource-name>Portal</web-resource-name>
        <url-pattern>/*</url-pattern>
        <http-method>GET</http-method>
        <http-method>POST</http-method>
      </web-resource-collection>
      <auth-constraint>
        <role-name>orbeon-service</role-name>
      </auth-constraint>
    </security-constraint>

    任何人都可以帮我解决这个问题吗?

0 个答案:

没有答案