title: How to use Domain name with https instead of localhost for debugging website in IIS
body: <p>I am implementing Single Sign On(using OKTA) on one of our MVC based website where the OKTA takes a Response URL to throw its response back to my code once the user has entered his credentials on OKTA login page</p>
  
  <p>OKTA takes an <b>HTTPS</b> based response URL to throw its response.</p>
  
  <p>Things I have done:</p>
  
  <p>1) I have specified a dummy Hostname to my machine using <b>etc/hosts</b> file like:</p>
  
  <p>127.0.0.1    www.abc.com</p>
  
  <p>2) Enabled <b>https://</b> on www.abc.com on my local machine</p>
  
  <p>3) Specified a route {{controller}}/{{Action}} to receive the response in my code.</p>
  
  <p>4) I have tried specifying Bindings to my local applicationConf file:</p>
  
  <pre><code>             &lt;bindings&gt;
                  &lt;binding protocol="http" bindingInformation="*:58565:localhost" /&gt;
                    &lt;binding protocol="https" bindingInformation="*:443:www.abc.com" /&gt;
              &lt;/bindings&gt;
  </code></pre>
  
  <p><br/>
  <br/></p>
  
  <p>My VS project configuration looks like this:</p>
  
  <p><a href="https://i.stack.imgur.com/C2WQJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/C2WQJ.png" alt="enter image description here"></a></p>
  
  <p><br/>
  Is it possible to receive the response on the local MVC route (hit the breakpoint) when the URL (where OKTA throws response) is like <b> https:// www.abc.com/Home/Auth</b></p>
  
  <p><b>Problem is </b> when I write<b> localhost:58565/Home/Index</b> or  <b> http:// www.abc.com/Home/Index</b> with VS debugging on, it hits the breakpoint but when I type<b> https:// www.abc.com/Home/Index</b> (with https) it does not hit the breakpoint in Visual Studio. With https it says 404 Not found.</p>
  
  <p>Am I missing something? </p>
  
  <p>Thanks</p>