title: IdentityServer3 PublicOrigin and IssuerUri Difference and Usage in IdentityServerOptions
body: <p>I got some issue when deploying to IIS. Apparently the client uses reverse proxy and all of the OpenId configuration disco showing IP address instead of their domain name. <code>PublicOrigin</code> solves my problem. However, I still don't understand the different between,</p>
  
  <pre><code>PublicOrigin
  </code></pre>
  
  <p>and</p>
  
  <pre><code>IssuerUri
  </code></pre>
  
  <p>Example in:</p>
  
  <pre><code>var options = new IdentityServerOptions
  {
      PublicOrigin = "https://myids/project1/",
      IssuerUri = "https://myids/project1/",
      ...
  }
  </code></pre>
  
  <p>I can see from the disco showing changes as well if both value updated respectively, i.e.;</p>
  
  <pre><code>{
    "issuer": "https://myids/project1/",
    "jwks_uri": "https://myids/project1/.well-known/jwks",
    "authorization_endpoint": "https://myids/project1/connect/authorize",
    "token_endpoint": "https://myids/project1/connect/token",
    "userinfo_endpoint": "https://myids/project1/connect/userinfo",
    "end_session_endpoint": "https://myids/project1/connect/endsession",
    "check_session_iframe": "https://myids/project1/connect/checksession",
    "revocation_endpoint": "https://myids/project1/connect/revocation",
    "introspection_endpoint": "https://myids/project1/connect/introspect",
    ...
  }
  </code></pre>
  
  <p>and why not just make it the same as IssuerUri. I have read the documentation on this. Technically is just a description of the properties. I would like to understand more.</p>
  
  <p>Many thanks.</p>