Why I sometimes get this error when try to authorize from the MVC client, not even end up on the login page.
Scenario
The issue sometime didn't happen however most of the time shows the error.
This issue never happen/exist if I deploy to Azure or run on local machine.
I have 3 applications which is the MVC Client, Web API client and IdentityServer3.
Three of them are on localhost on separate Virtual Directory in IIS.
This issue exist if I deploy to clients (data center) machine which has Reverse Proxy server for the domain, e.g. http://yyy.some-domain.com.
If I don't add IssuerUri and PublicOrigin on the IdentityServer configuration, the OpenId configuration disco will show all the "connect" URL as localhost IP address instead of the domain name.
All redirect URL points to the revers proxy public domain URL.
I have no idea how to solve this issue. I also cannot say because of their data center issue as they host hundreds of apps and none of them has issue. My solution now is to add the,
DelayLoadMetadata = true
on the Web API project as I suspect because of this. Or is there something that I should change before I deploy back to their server.
Question / Issue
Why I sometimes get this error when try to authorize from the MVC client, not even end up on the login page.
Scenario
I have no idea how to solve this issue. I also cannot say because of their data center issue as they host hundreds of apps and none of them has issue. My solution now is to add the,
on the Web API project as I suspect because of this. Or is there something that I should change before I deploy back to their server.
Relevant parts of the log file