After a whole week, I finally figured it out using Stackoverflow and OpenAM Mailing list . There were two main problems: missing log files and missing cookie domains. Installing an OpenAM server and a web policy agent is difficult, there are many log files and many different configuration options. If you select the wrong parameters, this will not work. It is impossible to make it work without knowing what is happening, which can only be determined by a suitable log file.
Missing log for web policy agent . The log level must be set in the Java property files. There are two Java Properties files for the web policy agent, OpenSSOAgentBootstrap.properties and OpenSSOAgentConfiguration.properties . The logging and debugging level, called com.sun.identity.agents.config.debug.level , can and must be defined in both (!) Files, and it must be set to a high level, all:4 or all:5 . The format is important. Even if you do, the AgentConfiguration.properties file is only used when the agent is not in central configuration mode. The profile must be set to "local".
Missing cookie domain . Remember to enter the correct Cookie domain when setting up the OpenAM server at the beginning or add it afterwards if it is missing. On the OpenAM server, go to Configuration > System > Platform and change the value of the cookie domain in your domain (for instace .example.com ) if it is missing. Otherwise, the browser will lose your cookie during the redirect process. Somehow I had an empty record for the cookie domain on the OpenAM server, I think I forgot the point ( example.com instead of .example.com ) so that it was invalid (or something like that).
This troubleshooting site has helped find the problem.
source share