【发布时间】:2011-04-29 21:22:56
【问题描述】:
只是想知道是否有人可以在 joss-agent-config.xml 中向我展示如何使用 JOSSO 的合作伙伴应用程序的示例?
【问题讨论】:
标签: josso
只是想知道是否有人可以在 joss-agent-config.xml 中向我展示如何使用 JOSSO 的合作伙伴应用程序的示例?
【问题讨论】:
标签: josso
今天刚刚解决了这个问题。要为 JOSSO ignore-url-patterns 标签设置 URL 模式,您需要使用来自另一个命名空间的标签:
这假设您有 xmlns:agent="urn:org:josso:agent:core" 和 xmlns:s="http://www.springframework.org/schema/beans"。
ignore-url-patterns 的 XSD 使用“##other”范围,因此它必须是来自另一个命名空间的标记。我使用了 spring 的
【讨论】:
<configuration>
<agent:agent-configuration>
<!-- ============================================================================= -->
<!-- -->
<!-- JOSSO Parnter application definicions : -->
<!-- -->
<!-- Configure all web applications that should be a josso partner application -->
<!-- within this server. -->
<!-- For each partner application you have to define the proper web-context. -->
<!-- ============================================================================= -->
<agent:partner-apps>
<agent:partner-app id="AdminApp" context="/admin"/>
<agent:partner-app id="HOME" context="/home" >
<ignore-web-resource-collections>public-resources,img-resources</ignore-web-resource-collections>
</agent:partner-app>
<agent:partner-app id="EmployeeApp" context="/emp"/>
<agent:partner-app id="AuditApp" context="/audit"/>
</agent:partner-apps>
</agent:agent-configuration>
【讨论】: