Can I protect application with adapter authentication?
Base on single step adapter authentication example, i added mobileSecurityTest to authenticationConfig.xml under securityTests tag like below:
<mobileSecurityTest name="usermobileTest">
<testAppAuthenticity/>
<testUser realm="SingleStepAuthRealm" />
<testDeviceId provisioningType="none"/>
</mobileSecurityTest>
and in application-descriptor.xml:
<android version="1.0" securityTest="usermobileTest">
<worklightSettings include="true"/>
<security>
<encryptWebResources enabled="false"/>
<testWebResourcesChecksum enabled="false" ignoreFileExtensions="png, jpg, jpeg, gif, mp4, mp3"/>
<publicSigningKey>MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAohbTq82oTymVDkXQsXBuffE82Jipympa9QPWNsqSYkEQL1y8cHRM6+9gZQtvmX8xssnIwdiV/4WKwIOadCdIcaatNPSTYN4h3TLPUdt1SvtZ8QUC1zzwAeTzTRNa7GFTjwUGT7ZsfUtQBnXfSH8F+jDi+x1m9QtiOxG1+s2M5+3BgBjAa0GIYyn0xLI4zaWUamaIsvG8lU4Oh9FJh7cTkx1nCKIz8zoROIOfzo0rQj35Q7Gmkui58JnrL3YTqxORMD/J2UTe9wmHqJ3QgL5wEYJzIicXtUwBzqOhS60FjFg5c85RJcAZBnlyFPzTKc/gZI9AJNZGR6LQOERR1EpmmQIDAQAB</publicSigningKey>
</security>
</android>
And in initOptions.js file, set connectOnStartup : true.
When app starts, it shows login page, then i enter username, password and click submit button, the app shows an alert: An error was encoutered while proccessing the request from the application.
And in Logcat Debugging, it shows error:
StatHub::Init - App com.SingleStepAdapterAuthentication isn't supported.
Can anyone tell me why? Thanks for your help!