【问题标题】:How do I set an adapter's security test to come from worklight.properties?如何将适配器的安全测试设置为来自 worklight.properties?
【发布时间】:2016-06-02 20:41:19
【问题描述】:

我的公司正在开发使用 MobileFirst v6.3 开发的应用程序。我正在考虑创建一个允许服务器绕过我们的标准安全测试的服务器配置。

这是我希望在我的 worklight.properties 文件中创建的条目类型:

#############
# Worklight Security Test
#############
mt.adapter.security=custom-security-test

这就是我试图在适配器的过程中放置​​值的方式:

<procedure name="getTechUserAdapter" securityTest="${mt.adapter.security}"/>

当我构建和部署它时,我得到了这个错误:

<error mbeanName="com.worklight.common.server.jmx.api:qualifier=worklight,type=ProjectManagement" node="worklight///10.16.109.75" date="2016-06-02T19:58:02.889Z" phase="PREPARE" code="FAILURE" details="Procedure &apos;getTechUserAdapter&apos; in adapter &apos;TechUserServiceAdapter&apos; requires security test &apos;${mt.adapter.security}&apos; which is not defined in authenticationConfig.xml.">

Worklight 正在尝试将安全测试转换为字符串,而不是放置在 worklight.properties 文件中的值。有谁知道如何让它使用变量值?

【问题讨论】:

    标签: ibm-mobilefirst worklight-adapters worklight-server worklight-security


    【解决方案1】:

    安全测试定义不支持自定义属性,例如您正在尝试执行的操作...它查看 authenticationConfig.xml 文件。

    相反,您可能需要在构建适配器之前保留多个配置并在它们之间进行交换。

    【讨论】:

    • 感谢您的快速回复。我希望避免手动步骤将自定义安全测试换成 wl_unprotected,但我想没有其他选择。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-09-06
    • 1970-01-01
    • 1970-01-01
    • 2014-01-10
    • 2019-08-13
    • 2018-12-20
    • 2021-08-20
    相关资源
    最近更新 更多