问题
I am getting an error message relating to an attempt to authenticate with azure active directory and in that error message the url it is trying to connect to is shown as '[PII is hidden]'. I think i can better resolve the issue if i can see this value but i don't know how to tell .net that it is okay to show it to me. Does anyone know how to force .net to show me the value/url that it is hiding?
回答1:
After a lot of searching i found that the way to make the error and logging show the correct value instead of the text '[PII is hidden]' is to add the following line of code:
IdentityModelEventSource.ShowPII = true;
after adding this i am now able to see what url is being requested and update my settings accordingly.
Sam
来源:https://stackoverflow.com/questions/55024380/asp-net-azure-active-directory-integration-error-message-contains-pii-is-hidde