I have an issue to force openAM to log in using my custom realm. I have configured my J2EE tomcat agent to use my custom realm /stmdevrealm:
com.sun.identity.agents.config.organization.name =stmdevrealm
My login page is accessible on http://login.stmdev.comp:9150/openam/UI/Login and my protected app is available on http://app.stmdev.comp:9140/agentsample/
When I try to log in to realm using http://login.stmdev.comp:9150/openam/UI/Login?realm=stmdevrealm I am able to log in successfully. However, when I'm accessing my protected app it uses default / realm.
Realm/DNS Aliases for "/" is set as
login.stmdev.comp
for "app" it is set as:
app.stmdev.comp
What did I miss? How to force my agent to use right realm?