title: Using Reverse Proxy with IIS / ARR / URLRewrite with Office 365 authentication layer to access internal applications
body: <p>I have been able to create a ASP MVC application that authenticates using Office 365 SSO.</p>
  
  <p>I am looking for a way to have Office 365 as a SSO layer before accessing any internal applications (apache) we have on the network.</p>
  
  <p>We have successfully setup a reverse proxy with ARR / URL Rewrite as discussed in this document:
  <a href="https://confluence.atlassian.com/display/JIRAKB/Integrating+JIRA+with+IIS+using+ARR" rel="nofollow">https://confluence.atlassian.com/display/JIRAKB/Integrating+JIRA+with+IIS+using+ARR</a></p>
  
  <p>The issue I am having is that URL-Rewrite is happening too high up the execution stack and bypassing any modules.</p>
  
  <p>I am looking for some guidance on how to implement a Office 365 authentication layer on IIS for internal non ASP.NET applications that sits behind a firewall.</p>
  
  <p>Any ideas?</p>