asp.net azure active directory integration error message contains '[PII is hidden]'

自闭症网瘾萝莉.ら 提交于 2020-04-30 13:56:49

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!