I am having a problem in checking security test for adapter based authentication with Multiple Realm. I have the following configuration in authenticationConfig.xml
<customSecurityTest name="RealmAdapter-securityTest">
<test isInternalUserID="true" realm="RealmAdapterRealm" step="1" mode="perRequest" />
<test realm="RealmAdapterRealm2" step="2" mode="perRequest"/>
</customSecurityTest>
</securityTests>
<realm name="RealmAdapterRealm" loginModule="MultipleRealmLoginModule">
<className>com.worklight.integration.auth.AdapterAuthenticator</className>
<parameter name="login-function" value="RealmAdapter.doLogin" />
<parameter name="logout-function" value="RealmAdapter.onLogout" />
</realm>
<realm name="RealmAdapterRealm2" loginModule="MultipleRealmLoginModule">
<className>com.worklight.integration.auth.AdapterAuthenticator</className>
<parameter name="login-function" value="RealmAdapter.getText" />
</realm>
<loginModule name="MultipleRealmLoginModule">
<className>com.worklight.core.auth.ext.NonValidatingLoginModule</className>
</loginModule>
The problem is only first realm is getting called ! In my Login-Function of my of RealmAdapterRealm post successful login, I am setting user session object and returning authrequired to false. But my second realm is not getting called . If I change second realm(RealmAdapterRealm2) with step=1 and first realm(RealmAdapterRealm) to step=2, then also first realm is working .i.e RealmAdapterRealm2 is working and RealmAdapterRealm is never getting called. Please help me to achieve this as I am a newbie for IBM Worklight