I have two separate web applications. Lets say app1 and app2. Both are hosted in different server with different domain.
Now in app1 there is a link. On clicking over that link i have to call app2's login page with username and password and display the response. But username and password should not visible in URL.
Current Approach :
Now I accomplished my task by creating an iframe and passing username and password params in query string.
Like: www.app2.com/login.jsp?username=abc&password=xxx
By hitting above URL, user get logged-in and home page renders.
Required Approach
I want to call login page of another application with username and password as post parameters . And I want to do all my stuffs in server side without disclosing login credentials.
Note: I have control over app1 only I cant tweak code of app2. I am developing app1 in using JSP, struts 1.3.
The username and password for both the app are different. App1 is my app and app2 is third party report service.
Hope you got my point !!