3

Orbeon/Tomcatの初心者はこちら-明らかな何かが欠けていることを願っています...

私はOrbeon4M11を使用しており、ここで説明されているように、バンドルされたorbeon-authを認証サービスとして試してみたいと思います:http ://wiki.orbeon.com/forms/doc/developer-guide/page-flow-controller /authorization

最初はorbeon-authを機能させるのに問題がありましたが、今ではアクセスhttp://localhost:8080/orbeon-authすると認証のプロンプトが表示され、正しいクレデンシャルを入力するとhttp200が返されるようになりました。次に、orbeon-authを使用するようにページを構成する必要があります。上記のリンクの指示に従って、このプロパティを設定する必要があります。

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

しかし、コードをどこに置くべきかわかりませんでした。タグ内のpage-flow.xmlに含まれる可能性があると思いましたが<controller>、そこに配置してページにアクセスしようとすると、「OrbeonForms-エラーが発生しました」というエラーページが表示されます。また、properties-local.xmlに入れてみましたが、何もしませんでした。誰かが私を正しい方向に向けることができることを願っています...

これが私のプロパティ全体です-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>

私は/WEB-INF/resources/page-flow.xmlorbeon-auth/WEB_INF/web.xmlファイルを変更していません-それらは箱から出てきたままです。

4

1 に答える 1

1

この機能がどのように機能するのか混乱しました。/WEB-INF/config/properties-local.xmlに以下を追加して、デフォルトのページパブリックメソッド(GET&HEAD)をオーバーライドしました。

<property
  as="xs:string"
  processor-name="oxf:page-flow"
  name="page-public-methods"
  value="HEAD"/>

...そして外部GETリクエストは実際に最初にorbeon-authへの呼び出しを引き起こしました(認証のプロンプトはありません、それが期待される動作であるかどうかはわかりません-orbeon-authは401 / Unauthorizedを返し、すぐに403 / Forbidden、プロンプトはありません) 。

于 2012-10-17T14:45:06.550 に答える