2014-02-20 87 views
1

我试图按照the tutorial at this url,教程非常简单,但我无法得到正确的结果。下面IBM Worklight - 如何在Worklight Console中启用应用程序真实性?

是我authenticationConfig.xml

<securityTests> 
    <customSecurityTest name="custom-mobilesecurityTest"> 
    <test realm="wl_antiXSRFRealm" step="1"/> 
    <test realm="wl_authenticityRealm" step="2"/> 
    <test realm="HeaderAuthRealm" isInternalUserID="true" step="3"/> 
    </customSecurityTest> 
</securityTests> 

,但应用程序的认证出现在控制台总是“访问已禁用”,我无法启用它。我在这里错过了什么吗?

enter image description here

+0

您正在使用** Worklight **的哪个版本** Developers edition或Consumer Edition或Enterprise Edition **? –

回答

5

这将是更有益的,如果你会提什么你实际上已经完成,因为配置authenticationConfig.xml只有1的几个步骤。

另外请注意,为App真实性真正的工作,而不是使用虚拟实现,你必须使用 IBM工作灯的消费者版本(即是付费用户和安装工作灯Studio和工作灯服务器的正确版本)。


我相信对于您的问题,您还没有完成下面的第2步。


步骤启用应用程序真实性:

  1. 配置具有wl_authenticityRealm领域中的安全性试验:

    <customSecurityTest name="customTests"> 
        <test realm="wl_antiXSRFRealm" step="1"/> 
        <test realm="wl_authenticityRealm" step="1"/> 
        <test realm="wl_remoteDisableRealm" step="1"/> 
        <test realm="wl_anonymousUserRealm" isInternalUserID="true" step="1"/> 
        <test realm="wl_deviceNoProvisioningRealm" isInternalDeviceID="true" step="2"/> 
    </customSecurityTest> 
    

    ^这在滑动9中提到

  2. 将这个securityTestapplication-descriptor.xml环境(S),例如:

    <android version="1.0" securityTest="customTests"> 
    
  3. 对于Android,产生公共签名密钥:

    <android version="1.0" securityTest="customTests"> 
         <worklightSettings include="true"/> 
         <security> 
          <encryptWebResources enabled="false"/> 
          <testWebResourcesChecksum enabled="false" ignoreFileExtensions="png, jpg, jpeg, gif, mp4, mp3"/> 
          <publicSigningKey>MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBdfdsfdsfiQKBgQCPCbaCfAfnAqQ12/S5LLfA4cBz/3INyLRPhFGSVFztdWNzPhrna1xDc8/3V1sUIW2odfdfddfdfffdR2n3dAnNMVydfdfdfv68gmU5qVCN4LxSKKRAj7VVbhBxBIEt5MbY+c0o7NZ2Pgu/moJee8Wgu8veZ1TJntYn+cWCYuI/JSnA9nsskwhSdPHK32edsfsdfdfQIDAQAB</publicSigningKey> 
         </security> 
        </android> 
    

    ^这在幻灯片10-13中提到

  4. 对于iOS,将应用bundleId

    <iphone bundleId="com.worklight.test" version="1.0" securityTest="customTests">

    ^这在幻灯片中提到10-13

  5. 运行方式>工作灯开发服务器上运行

现在,应在Worklight中为您启用应用程序真实性下拉菜单 安慰。

+0

感谢您的回答,但application-descriptor.xml中的securityTest =“customTests”在教程页面中未提及。在应用您的解决方案后,它实际上在Eclipse> Run on Worklight Development Server上运行,但它仍然不会显示在我的WebSphere(Liberty Core版本)中,有什么想法? –

+0

我在Android和iPhone环境下的一个空白的新应用程序中遵循了我的指示,它正在工作。确认它也适用于您的空白新应用程序,然后检查您在当前应用程序中做了什么错误。 –

+0

是的伊丹,我只重新部署战争,但不是Websphere的客户。现在一切正常。 TQ。 –

相关问题