title: ADFS web authentication loop in IE
body: <p>I have a mvc4 web app that sits behind ADFS 2.0 authentication, it's configured using the web.config file. The application can be visited by going directly to a URL or as an iframe inside of CRM 2013.</p>
  
  <p>The application works in all (tested) browsers when visiting the URL directly, both redirection to login form and handing the user back to the web app with the proper information in the <em>ClaimsIdentity</em>.</p>
  
  <p>However, when visiting the app as an iframe inside CRM2013, internet explorer goes into a continous login loop. You are asked to provide the credentials (which are the same as for logging in to CRM) and when you click ok you get redirected back to the same login page again, to my knowledge the app never receives the hand off.</p>
  
  <p>In Safari, Chrome, Firefox, and Opera the users are able to log into the application inside of CRM as well as outside without any problems (I'd even go as far as saying that it works better than expected for these browsers).</p>
  
  <p>Does anyone have any idea of what I can try or what the problem could be for IE?</p>
  
  <p><strong>EDIT 1</strong>
  I'm thinking it has to do with some security setting and am playing around with the settings in IE. Unchecking this box stops the login form from showing in IE at all and I get an empty page instead.</p>
  
  <p><img src="https://i.stack.imgur.com/oLvdw.png" alt="nothingatall"></p>