【问题标题】:Worklight: multiple security realmsWorklight:多个安全领域
【发布时间】:2013-05-07 10:11:22
【问题描述】:

我想知道我们能否在authenticationconfig.xml 文件中定义多个安全测试?

它会正常工作,还是会导致问题?

有点像这样:

 <securityTests>
          <mobileSecurityTest name="myMobileSecurity">
                <testUser realm="myAppRealm"/>
                <testDeviceId provisioningType="none"/>
            </mobileSecurityTest>
            <customSecurityTest name="PushApplication-custom-securityTest">                             
                    <test realm="PushAppRealm" isInternalUserID="true" />   
                </customSecurityTest> 
            <customSecurityTest name="myAppSecurityTestCustom">                             
                    <test realm="myAppRealm" isInternalUserID="true" />   
                </customSecurityTest> 
        </securityTests>

    <realms>
            <realm loginModule="abcModule" name="myAppRealm">
                <className>com.worklight.core.auth.ext.FormBasedAuthenticator</className>
                <parameter name="login-page" value="login.html" />
            </realm>
            <realm loginModule="PushAppLoginModule" name="PushAppRealm">                                                
                <className>com.worklight.core.auth.ext.BasicAuthenticator</className>   
                    <parameter name="basic-realm-name" value="PushAppRealm"/>                                                  
            </realm>
            <realm loginModule="requireLogin" name="WorklightConsole">
                <className>com.worklight.core.auth.ext.FormBasedAuthenticator</className>
                <onLoginUrl>/console</onLoginUrl>
            </realm>
    </realms>

    <loginModules>
             <loginModule name="PushAppLoginModule">
                <className>com.abc.MyCustomLoginModule</className>
            </loginModule>
            <loginModule name="abcModule">
                <className>com.worklight.core.auth.ext.NonValidatingLoginModule</className>
            </loginModule>

            <loginModule name="requireLogin">
                <className>com.worklight.core.auth.ext.SingleIdentityLoginModule</className>
            </loginModule>
    </loginModules>

【问题讨论】:

    标签: security authentication ibm-mobilefirst


    【解决方案1】:

    这应该可以。虽然我不明白这样做的目的......

    提示:Understanding the Pre-defined Authentication Realms and Security Tests in Worklight

    【讨论】:

    • 谢谢伊丹。一项移动测试用于设备证券,另外两项自定义测试用于;推送安全和通用适配器保护。使用这些我试图保护所有资源免受基于设备或基于浏览器的攻击。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-03-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多