![](/img/trans.png)
[英]ASP.NET Core 3.1 Azure AD Authentication throws OptionsValidationException
[英]ASP.NET Core 3.1 + Azure AD Authentication - How to disclose “hidden email”
我有一個使用 Azure AD 作為身份驗證方法的 ASP.NET Core MVC web 應用程序。
當未分配給此應用程序的人嘗試登錄時,出現錯誤"Message contains error: 'access_denied', error_description: 'AADSTS50105: The signed in user '**{EmailHidden}**' is not assigned to a role for the application (...)"
生成。
在OpenIdConnectEvents.OnRemoteFailure
的上下文中,我希望能夠訪問{EmailHidden}的實際值,以改進未經授權訪問的日志記錄
我已經嘗試在應用程序ConfigureServices
方法中配置IdentityModelEventSource.ShowPII = true
。 它解決了其他類似的問題,但沒有解決這個問題。
有什么想法/建議嗎? 謝謝。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.