We have a strange problem with redirect.

We are using Spring 2.5 together with Spring Security. Here is the scenario:

User accesses the app via: https://myapp.org:8080/secured-site

Because it's restricted the application forwards the user to the login page wich is an OpenAM instance. After a successful login, the OpenAM forwads back to the application BUT to a different port:

https://myapp.org:8443/secured-site

We are now fighting with the IT Admin, that this is caused due to wrong settings either by the server (Unix) or the OpenAM app. Of course, he is blaming SpringSecurity that there are some settings, which say that using the instance under SSL it does automatically forwards to port 8443.

Please, can anyone clarify what it's causing this wrong port forwarding????

Thanks a lot!!!