IBM Worklight 6.0 - 启用控制台登录身份验证后的混合端口号? [英] IBM Worklight 6.0 - Mixed port numbers after enabling console login authentication?

查看:131
本文介绍了IBM Worklight 6.0 - 启用控制台登录身份验证后的混合端口号?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

希望获得Worklight控制台身份验证我按照 infocenter 。它当进入控制台时,它似乎正在工作,它会提示登录表单。

Wishing to have a Worklight Console Authentication I followed the infocenter instructions from this link at infocenter.It seems to be working at the first glance as entering the console it prompts the login form.

转到的控制台URL http://192.168 .168.154:9080 / finance / console / #stalogory 它立即启动登录页面。到目前为止一切顺利。

Going to the console URL at http://192.168.168.154:9080/finance/console/#catalog it brings the login page right away. So far so good.

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

After entering the right username/password (both defined at worklight.properties) the login page redirects to the Worklight console at port 10080 and fails to load the page

无法连接
Firefox无法建立与服务器的连接192.168.168.154:10080.

正如您所读,它试图连接到 http://192.168.168.154:10080/finance/console 。我猜不应该这样,因为没有配置端口10080。

As you can read it tries to connect to http://192.168.168.154:10080/finance/console. It should not happen I guess, as port 10080 was not configured.

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

I have no idea why it is redirecting to this port. I searched inside the config files for 10080 and could not find any reference to it. I think somehow WL is getting this 10080 as a default as it is the port used for development.

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

Here is the files snippets I am using to enable Login Console:

worklight.properties:

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

console.username=finance
console.password=finance

authenticationConfig。 xml

 <staticResources>
    <resource id="worklightConsole" securityTest="WorklightConsole">
            <urlPatterns>/console*</urlPatterns>
    </resource> 
    ....
</staticResources>

 <securityTests>

        <customSecurityTest name="WorklightConsole">
            <test realm="WorklightConsole" isInternalUserID="true"/>
        </customSecurityTest>
  ...
</securityTests>

server.xml

   <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"'/>

有关如何解决此端口不匹配问题的任何想法? Env是Liberty上的WL 6.0

Any idea on how to solve this port mismatch issue ? Env is WL 6.0 on Liberty

P.S:稍后我们计划改为使用LDAP。现在,在属性中使用用户名/ passaword就足够了。

P.S: Later on we plan to user LDAP instead. For now, having the username/passaword in the properties would suffice.

推荐答案

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

In worklight.properties, uncomment the #publicWorkLightPort=10080 property and change it to 9080.

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

worklight.properties is part of the Worklight project's .war file that is deployed into the application server; the application server may have its own port number set in server.xml, but the .war (project) has some specific properties of its own.

在我测试期间,我遇到过同样的问题,但是一旦取消注释并更改了worklight.properties中的端口值,重新指向后就可以在登录后正常工作。

During my testing I encountered the same issue, but once uncommenting and changing the port value in worklight.properties, the re-direct then worked properly after logging-in.

这篇关于IBM Worklight 6.0 - 启用控制台登录身份验证后的混合端口号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆