Hi,
I am migrating a web application from Java to .Net and I am trying to finalize the application architecture. The application is being developed in MVC 5 architecture. I am trying to use ARR with URL Rewrite to achive the below scenario. Below are the constraints with which I am trying to find a solution
- The login authentication to be done in a separate server(say Tier 1).
- The actual application codebase to be located in another server (say Tier 2). The application codebase should not be in the same server where we do the authentication.
- The response from Tier 2 server has to be routed via Tier 1 server.
I have decided to put two applications - one for login which authenticates the user through a web service and the other for the actual application. After authentication in Tier 1, I would redirect the request (using Response.redirect in the applicatin code) to the actual application in Tier 2. In order to route the response from Tier 2 via Tier 1 I am trying to use Reverse proxy routing concept using Application Request Routing (ARR) and URL Rewrite. I am able to achieve the reverse proxy without authentication in Tier 1. But when I authenticate in Tier 1 and do a "Response.redirect" in the application code, my URL rewrite rules are getting overlooked. Essentially I want the response from both the applications to be routed via the same server and the same URL.
I am new to ARR and URL rewrite and I am not sure if I am on the right path. Please validate my approach. Also do suggest if you have better one.
Thanks.