I have configured Access Manager to form fill and login to UA (which uses
OSP and all that).

Now, when I log out of userapp, the browser goes into a loop (doing
something which is to fast to see, over and over).

I would like the logout page to be nice, and log the user out.

setup is like this

UserPC -> idm.domain.com > ua.domain.com

I would like the users in UA to logout to https://idm.domain.com/AGLogout

How is that accomplished?