title: Using https with Identity Server 4
body: <p>I have followed all the IS4 tutorials here although none highlight how to use the https protocol in prod.  I might have missed something but when I deploy my IS4 server in IIS using https (using a cert I have installed on the IIS server) I can no longer call <code>tokenClient.RequestClientCredentialsAsync</code>. It simply returns <strong>Error=Unauthorised</strong> and <strong>ErrorType=Http</strong> as shown in the image:
  <a href="https://i.stack.imgur.com/7LI2Z.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7LI2Z.png" alt="enter image description here"></a></p>
  
  <p>My IS4 is setup as such</p>
  
  <pre><code>services.AddIdentityServer()
  //.AddSigningCredential(cert)
  .AddTemporarySigningCredential()...;
  </code></pre>
  
  <p>I have also tried using the same SSL cert but with no progress.</p>
  
  <p>EDIT (Answer):
  Arghhh! I had basic authentication enabled on my deployed IIS site which was causing that error, after disabling it, it worked as expected</p>