as its a configuration error, there probably is no PII data.
ShowPII in Startup.cs has no effect
Hi,
I have an ASP.NET application that authenticates via Azure Active Directory. It appears to have stopped working with an error as follows:
IDX20803: Unable to obtain configuration from: '[PII is hidden. For more details, see https://aka.ms/IdentityModel/PII.]'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
From searching the web I have found adding Microsoft.IdentityModel.Logging.IdentityModelEventSource.ShowPII = true
in Startup.cs as below should display the error details:
public void Configuration(IAppBuilder app)
{
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
IdentityModelEventSource.ShowPII = true;
ConfigureAuth(app);
}
This works locally but unfortunately not on the remote server where the error message above continues to show.
I do not know of another way to debug this issue without the error information.
Is there anything else that would determine whether the PII is shown?