有一个问题,我们能否在部署在 Websphere 自由配置文件服务器中的外部应用程序(战争)中使用安全测试。如果是,那么如何配置相同。安全测试将独立于工作灯应用程序和外部应用程序。
问问题
64 次
2 回答
0
你到底在说什么?你的情况我不清楚。
Worklight 安全测试旨在在 Worklight 项目的 authenticationConfig.xml 中进行配置,然后用于保护适配器 XML 文件中的适配器过程和/或 application-descriptor.xml 中的应用程序;它们不打算在任何其他情况下使用。
于 2014-06-17T07:09:52.677 回答
0
你的问题不清楚。我相信您想通过安全测试来保护您的 Worklight 控制台(战争),这是可能的。您可以使用用户名和密码保护您的控制台。(可以使用纯文本或加密)。有关更多信息,请参阅此
要启用安全测试,您需要authenticationConfig.xml
使用以下代码进行编辑。
<staticResources>
<resource id="worklightConsole" securityTest="WorklightConsole">
<urlPatterns>/console*</urlPatterns>
</resource>
</staticResources>
<securityTests>
<customSecurityTest name="WorklightConsole">
<test realm="WorklightConsole" isInternalUserID="true"/>
</customSecurityTest>
</securityTests>
<realms>
<realm loginModule="requireLogin" name="WorklightConsole">
<className>com.worklight.core.auth.ext.FormBasedAuthenticator</className>
<onLoginUrl>/console</onLoginUrl>
</realm>
</realms>
<loginModules>
<loginModule name="requireLogin">
<className>com.worklight.core.auth.ext.SingleIdentityLoginModule</className>
</loginModule>
</loginModules>
于 2014-06-17T07:35:55.930 回答