Ibm mobilefirst Woklight设备单点登录

Ibm mobilefirst Woklight设备单点登录,ibm-mobilefirst,single-sign-on,worklight-security,Ibm Mobilefirst,Single Sign On,Worklight Security,我正在使用worklight开发两个android本机应用程序,希望在其中共享用户id以启用SSO。我正在使用android emulator测试这两个应用程序。我为每个应用程序定义了以下安全测试: <mobileSecurityTest name="Authm"> <testAppAuthenticity/> <testUser realm="BasicAuth" sso="true"/> <testDe

我正在使用worklight开发两个android本机应用程序,希望在其中共享用户id以启用SSO。我正在使用android emulator测试这两个应用程序。我为每个应用程序定义了以下安全测试:

<mobileSecurityTest name="Authm">
        <testAppAuthenticity/>
        <testUser realm="BasicAuth" sso="true"/>
        <testDeviceId provisioningType="none"></testDeviceId>
</mobileSecurityTest>  

我还为AndroidManifest.xml文件中的每个应用程序定义了shareduserId=com.ibm值


我错过什么了吗?因为我一直在测试应用程序,如果用户在第一个应用程序中进行了身份验证,那么在第二个应用程序中仍然需要进行身份验证。

我已经找到了解决方案。我决定创建一个customSecurityTest,以便在调用适配器时使用它:

<customSecurityTest name="Auth">
            <test realm="BasicAuth" isInternalUserID="true" step="1"/>
</customSecurityTest>

重要提示:您需要定义步骤编号。如果不进行定义,SSO将无法工作。