在Worklight 6.2上配置SSO

时间:2015-06-22 14:23:59

标签: ibm-mobilefirst

我正在审核如何通过以下网址实施SSO:

http://www-01.ibm.com/support/knowledgecenter/#!/SSZH4A_6.2.0/com.ibm.worklight.dev.doc/devref/t_configuring_device_SSO.html

与我们的代码匹配,authenticationConfig.xml实现如下:

<customSecurityTest name="BankingTestMobile">
            <test realm="wl_antiXSRFRealm" step="2"/>
            <test realm="wl_authenticityRealm" step="2"/>
            <test realm="wl_remoteDisableRealm" step="2"/>
            <test realm="wl_directUpdateRealm" mode="perSession" step="1"/>
            <test realm="wl_anonymousUserRealm" isInternalUserID="true" step="2"/>
            <test realm="wl_deviceNoProvisioningRealm" isInternalDeviceID="true" step="2"/>
            <test realm="MySSO" isInternalUserID="true" step="3"/>
</customSecurityTest>

领域:

<realm loginModule="BankingLoginModule" name="BankingRealm">
            <className>com.worklight.integration.auth.AdapterAuthenticator</className>
            <parameter name="login-function" value="MBCAuthenticationAdapter.onAuthRequired" />
            <parameter name="logout-function" value="MBCAuthenticationAdapter.onLogout" />
</realm>

登录模块:

    <loginModule name="BankingLoginModule" ssoDeviceLoginModule="WLDeviceNoProvisioningLoginModule">
                <className>com.worklight.core.auth.ext.NonValidatingLoginModule</className> 
</loginModule>

我的问题出在<customSecurityTest>。从哪里获得SSO领域? SSO的领域名称应该是什么?

我需要为它定义一个领域吗?

我不确定如何在<customSecurityTest> <mobileSecurityTest>中明确地完成配置。

谢谢。

1 个答案:

答案 0 :(得分:0)

我相信您应该将<test realm="MySSO" ...更改为"BankingRealm"(反之亦然)。

另见:App will throw exception at when I first login when device SSO is enabled