I set up a CAS server locally so that I can test an application. Both the client application and CAS server runs on the same machine.
The application redirects to the CAS server but the CAS server sees that the client IP address and the CAS server IP address is the same as shown below:
CLIENT IP ADDRESS: 127.0.0.1
SERVER IP ADDRESS: 127.0.0.1
I believe this is the reason why when the CAS server redirects back after authentication, the base URL of the redirect URL is the URL of the CAS server(localhost and CAS server port).
As both the client application and CAS server runs on the same machine on different ports, how can I ensure that the CAS server after authentication redirects to the client app url(localhost and client application port) rather than the CAS server?
Thank you