MobileFirst:添加 mobileSecurityTest 后在不登录的情况下调用适配器时出现问题
MobileFirst: issue in calling an adapter without login after adding mobileSecurityTest
我有一个登录安全测试如下
<customSecurityTest name="SingleStepAuthAdapter-securityTest">
<test isInternalUserID="true" realm="SingleStepAuthRealm"/>
</customSecurityTest>
<realm loginModule="AuthLoginModule" name="SingleStepAuthRealm">
<className>com.worklight.integration.auth.AdapterAuthenticator</className>
<parameter name="login-function" value="AuthenticationService.onAuthRequired"/>
<parameter name="logout-function" value="AuthenticationService.onLogout"/>
</realm>
我有必须在登录前调用的适配器,它们工作正常,直到我将这段代码放入我的 authenticationConfig.xml 以进行推送通知
<mobileSecurityTest name="PushApplication-strong-mobile-securityTest">
<testUser realm="SingleStepAuthRealm"/>
<testDeviceId provisioningType="none"/>
</mobileSecurityTest>
在登录前调用的适配器(如忘记密码)无法正常工作,并且没有提供任何 error.Can 帮助我理解为什么存在此问题,我是否需要在这些中添加一些 wl_unprotected adapters.Because 我试过了。我需要做什么吗else.I如果你需要别的可以给你更多的细节。
请帮忙。
终于找到解决办法了..
当我删除它对我有用时,我正在对整个 android 应用程序进行安全测试...
而不是这个..
<android version="1.0" securityTest="PushApplication-strong-mobile-securityTest">
使用这个有效
<android version="1.0" >
我有一个登录安全测试如下
<customSecurityTest name="SingleStepAuthAdapter-securityTest">
<test isInternalUserID="true" realm="SingleStepAuthRealm"/>
</customSecurityTest>
<realm loginModule="AuthLoginModule" name="SingleStepAuthRealm">
<className>com.worklight.integration.auth.AdapterAuthenticator</className>
<parameter name="login-function" value="AuthenticationService.onAuthRequired"/>
<parameter name="logout-function" value="AuthenticationService.onLogout"/>
</realm>
我有必须在登录前调用的适配器,它们工作正常,直到我将这段代码放入我的 authenticationConfig.xml 以进行推送通知
<mobileSecurityTest name="PushApplication-strong-mobile-securityTest">
<testUser realm="SingleStepAuthRealm"/>
<testDeviceId provisioningType="none"/>
</mobileSecurityTest>
在登录前调用的适配器(如忘记密码)无法正常工作,并且没有提供任何 error.Can 帮助我理解为什么存在此问题,我是否需要在这些中添加一些 wl_unprotected adapters.Because 我试过了。我需要做什么吗else.I如果你需要别的可以给你更多的细节。
请帮忙。
终于找到解决办法了..
当我删除它对我有用时,我正在对整个 android 应用程序进行安全测试...
而不是这个..
<android version="1.0" securityTest="PushApplication-strong-mobile-securityTest">
使用这个有效
<android version="1.0" >