Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ionic-framework/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Can';无法获得在orbeon 4 M11中工作的授权服务(orbeon auth)_Orbeon - Fatal编程技术网

Can';无法获得在orbeon 4 M11中工作的授权服务(orbeon auth)

Can';无法获得在orbeon 4 M11中工作的授权服务(orbeon auth),orbeon,Orbeon,Orbeon/Tomcat新手-希望我错过了一些明显的东西 我在Orbeon 4 M11上&希望尝试捆绑的Orbeon auth作为授权服务,如下所述: 起初我甚至很难让orbeon auth正常工作,但现在如果我访问http://localhost:8080/orbeon-auth如果输入正确的凭据,它将提示进行身份验证并返回http 200。现在我需要配置我的页面以使用orbeon auth。根据上面链接中的说明,我需要设置此属性: <property as="xs:anyURI" p

Orbeon/Tomcat新手-希望我错过了一些明显的东西

我在Orbeon 4 M11上&希望尝试捆绑的Orbeon auth作为授权服务,如下所述:

起初我甚至很难让orbeon auth正常工作,但现在如果我访问
http://localhost:8080/orbeon-auth
如果输入正确的凭据,它将提示进行身份验证并返回http 200。现在我需要配置我的页面以使用orbeon auth。根据上面链接中的说明,我需要设置此属性:

<property as="xs:anyURI" processor-name="oxf:page-flow" name="authorizer" value="/orbeon-auth"/>

但我不知道该把密码放在哪里。我想它可能会出现在
标记中的page-flow.xml中,但是当我把它放在那里并尝试访问一个页面时,我会看到“Orbeon表单-发生错误”错误页面。我也试着把它放在properties-local.xml中,但没有任何效果。希望有人能给我指出正确的方向

以下是my properties-local.xml的全部内容:

<!--
    This file is an empty template for your own properties-local.xml file. Please follow the instructions here:

    http://wiki.orbeon.com/forms/doc/developer-guide/configuration-properties
-->
<properties xmlns:xs="http://www.w3.org/2001/XMLSchema"
            xmlns:oxf="http://www.orbeon.com/oxf/processors">

    <!-- This is an example of property which overrides an existing property's default value:
    <property as="xs:NMTOKENS"
              name="oxf.xforms.logging.debug"
              value="document model submission submission-details control event action analysis server html"/>
    -->
    <property as="xs:string" name="oxf.fr.persistence.provider.Test.*.*" value="oracle"/>
    <property as="xs:string" name="oxf.fr.persistence.provider.FieldReports.*.*" value="oracle"/>

    <property as="xs:string" name="oxf.fr.persistence.service.oracle.datasource" value="oracle"/>

    <property as="xs:boolean" name="oxf.fr.persistence.oracle.create-flat-view" value="true"/>

    <property as="xs:string"  name="oxf.fr.summary.buttons.*.*" value="new print delete"/>

    <property as="xs:string" name="oxf.fr.detail.buttons.*.*" value="close clear print save save-locally submit workflow-review workflow-send"/>

    <property as="xs:boolean" name="oxf.fr.detail.edit.accept-post.*.*" value="true"/>

    <property as="xs:anyURI" name="oxf.fr.default-logo.uri.*.*"
                         value="/usr/local/tomcat/webapps/orbeon4pe/WEB-INF/resources/wb-logo.png"/>
    <property
        as="xs:anyURI"
        processor-name="oxf:page-flow"
        name="authorizer"
        value="/orbeon-auth"/>
</properties>
<property
  as="xs:string"
  processor-name="oxf:page-flow"
  name="page-public-methods"
  value="HEAD"/>


我没有改变
/WEB-INF/resources/page flow.xml
或orbeon auth
/WEB\u INF/WEB.xml
文件-它们是从盒子里出来的。

我对这个功能应该如何工作感到困惑。通过将以下内容添加到/WEB-INF/config/properties-local.xml,我覆盖了默认的页面公共方法(GET&HEAD):

<!--
    This file is an empty template for your own properties-local.xml file. Please follow the instructions here:

    http://wiki.orbeon.com/forms/doc/developer-guide/configuration-properties
-->
<properties xmlns:xs="http://www.w3.org/2001/XMLSchema"
            xmlns:oxf="http://www.orbeon.com/oxf/processors">

    <!-- This is an example of property which overrides an existing property's default value:
    <property as="xs:NMTOKENS"
              name="oxf.xforms.logging.debug"
              value="document model submission submission-details control event action analysis server html"/>
    -->
    <property as="xs:string" name="oxf.fr.persistence.provider.Test.*.*" value="oracle"/>
    <property as="xs:string" name="oxf.fr.persistence.provider.FieldReports.*.*" value="oracle"/>

    <property as="xs:string" name="oxf.fr.persistence.service.oracle.datasource" value="oracle"/>

    <property as="xs:boolean" name="oxf.fr.persistence.oracle.create-flat-view" value="true"/>

    <property as="xs:string"  name="oxf.fr.summary.buttons.*.*" value="new print delete"/>

    <property as="xs:string" name="oxf.fr.detail.buttons.*.*" value="close clear print save save-locally submit workflow-review workflow-send"/>

    <property as="xs:boolean" name="oxf.fr.detail.edit.accept-post.*.*" value="true"/>

    <property as="xs:anyURI" name="oxf.fr.default-logo.uri.*.*"
                         value="/usr/local/tomcat/webapps/orbeon4pe/WEB-INF/resources/wb-logo.png"/>
    <property
        as="xs:anyURI"
        processor-name="oxf:page-flow"
        name="authorizer"
        value="/orbeon-auth"/>
</properties>
<property
  as="xs:string"
  processor-name="oxf:page-flow"
  name="page-public-methods"
  value="HEAD"/>


…外部GET请求确实首先导致了对orbeon auth的调用(没有验证提示,不确定这是否是预期行为-orbeon auth只返回401/Unauthorized,然后立即返回403/Forbidden,没有提示)。

没错,属性在
WEB-INF/config/properties local.xml
中。您是在这里添加上述属性的吗?如果是的话,你可以编辑你的问题并把整个文件的内容放在那里吗?可能有语法错误。添加了properties-local.xml-我希望我期望的行为是正确的-当orbeon应用程序执行PUT或POST时应该调用orbeon auth,对吗(假设默认值没有被覆盖)?我查看了Tomcat localhost\u access\u日志,除了显式访问URL外,没有对orbeon auth的请求。不,只调用授权者来授权外部请求。Orbeon表单本身的内部请求不会调用授权人。我现在明白了。我很困惑…重新阅读文档我看到了区别。我添加了值为“HEAD”的“page public methods”属性,然后GET请求确实会提示调用授权人。感谢您帮助我的大脑向正确的方向移动。orbeon-auth返回401,因为默认情况下,orbeon-auth应用程序配置为仅对形成Runner服务的请求进行身份验证,请参阅中的
/fr/service/*
上的匹配。编辑的答案以澄清行为-my orbeon auth web.xml在
/fr/service/*
上不匹配-只有一个
块匹配
/*
并包括
orbeon service
。由于某种原因,当我访问
http://localhost:8080/orbeon-auth/
系统会提示我输入凭据,但当我访问
http://localhost:8080/orbeon/
,它调用orbeon auth,但结果是403/禁止,没有提示输入凭据。顺便说一句,您可以找到有关属性在