我正在爲我的MVC Web應用程序使用Azure AD B2C身份驗證。我已經開發了項目的登錄部分。現在我想在用戶登錄到Web應用程序時獲取用戶的詳細信息。我見過一些解釋如何編輯用戶詳細信息的文章。但是我找不到任何與用戶配置文件數據相關的內容。請幫忙。如何在azure廣告中獲取用戶個人資料詳細信息b2c
這是我的登錄操作。
public ActionResult SignIn()
{
if (!Request.IsAuthenticated)
{
var authenticationManager = HttpContext.GetOwinContext().Authentication;
authenticationManager.Challenge(new AuthenticationProperties() { RedirectUri = "/" }, Startup.SignInPolicyId);
return Content("");
}
else
{
return Redirect("~/Home/Login");
}
}