What I want to do:
Configure auth chaining on a resource protected by a policy agent http://www.myexample.com/xyz. I have configured OPENDJ, AdaptiveRisk and HOTP modules in that order.
My problem is that i can only achieve this if I have the same kind of chain configured for the top level realm. I cannot do that because I want to have multiple realms in the future which have different authentication chains. So I want OpenAM to use the auth chain in the realm irrespective of whats configured in the top level realm.
I have followed https://forgerock.org/topic/conditional-login-url-openam-using-webagent/ , set the environment policy to use my auth chain and also included ?resource=true in the login URL. But this doesnt seem to help me.