Ibm mobilefirst IBM Worklight 6.0-启用控制台登录身份验证后端口号混合?

Ibm mobilefirst IBM Worklight 6.0-启用控制台登录身份验证后端口号混合?,ibm-mobilefirst,worklight-security,worklight-console,Ibm Mobilefirst,Worklight Security,Worklight Console,希望进行Worklight控制台身份验证,我按照此链接中的信息中心说明进行了操作。在进入控制台时,它会提示登录表单,乍一看似乎起到了作用 转到http://192.168.168.154:9080/finance/console/#catalog它会立即显示登录页面。到目前为止还不错 输入正确的用户名/密码(均在worklight.properties中定义)后,登录页面将重定向到端口10080处的worklight控制台,并且无法加载页面 无法连接 Firefox无法在192.168.168.

希望进行Worklight控制台身份验证,我按照此链接中的信息中心说明进行了操作。在进入控制台时,它会提示登录表单,乍一看似乎起到了作用

转到
http://192.168.168.154:9080/finance/console/#catalog
它会立即显示登录页面。到目前为止还不错

输入正确的用户名/密码(均在worklight.properties中定义)后,登录页面将重定向到端口10080处的worklight控制台,并且无法加载页面

无法连接 Firefox无法在192.168.168.154:10080与服务器建立连接。

如您所知,它试图连接到
http://192.168.168.154:10080/finance/console
。我想这不应该发生,因为没有配置端口10080

我不知道它为什么会重定向到此端口。我在配置文件中搜索了10080,没有找到任何对它的引用。我认为WL以某种方式将10080作为默认端口,因为它是用于开发的端口

以下是我用于启用登录控制台的文件片段:

工作灯。属性:

#publicWorkLightHostname=localhost
# http or https
#publicWorkLightProtocol=http
# For default port leave empty
#publicWorkLightPort=10080  <-- it is commented out

console.username=finance
console.password=finance
#publicWorkLightHostname=localhost
#http或https
#publicWorkLightProtocol=http
#默认端口为空

#publicWorkLightPort=10080在
worklight.properties
中,取消注释
#publicWorkLightPort=10080
属性并将其更改为
9080

worklight.properties是部署到应用服务器中的worklight项目的.war文件的一部分;应用服务器可能在server.xml中设置了自己的端口号,但是.war(项目)有自己的一些特定属性


在测试过程中,我遇到了相同的问题,但一旦在worklight.properties中取消注释并更改端口值,re direct在登录后就可以正常工作。

好的,我会尝试一下。worlight.properties有一个让我困惑的注释。它是:#在生产模式中,这些属性是强制性的-必须由强制的jndi条目覆盖?属性中的那些还是jndi中的那些?
 <staticResources>
    <resource id="worklightConsole" securityTest="WorklightConsole">
            <urlPatterns>/console*</urlPatterns>
    </resource> 
    ....
</staticResources>

 <securityTests>

        <customSecurityTest name="WorklightConsole">
            <test realm="WorklightConsole" isInternalUserID="true"/>
        </customSecurityTest>
  ...
</securityTests>
   <httpEndpoint id="defaultHttpEndpoint"
                  host="*"
                  httpPort="9080"
                  httpsPort="9443" >
        <tcpOptions soReuseAddr="true"/>
    </httpEndpoint>
    <!-- Declare the JNDI properties for the IBM Worklight Console. -->
    <jndiEntry jndiName="worklight/publicWorkLightProtocol" value='"http"'/>
    <jndiEntry jndiName="worklight/publicWorkLightPort" value='"9080"'/>
    <jndiEntry jndiName="worklight/serverSessionTimeout" value='"10"'/>