Azure AD B2C与Azure AD - 配置文件编辑

时间:2017-11-13 18:54:18

标签: azure-active-directory azure-ad-b2c

如果我已成功配置Azure AD B2C以允许使用Azure AD帐户登录(每https://docs.microsoft.com/en-us/azure/active-directory-b2c/active-directory-b2c-setup-aad-custom),我是否应该能够设置自定义策略以允许经过AAD身份验证的用户编辑其配置文件,覆盖默认的ProfileEdit政策?如果是这样,有关如何解决的任何提示?我很确定我需要创建一个新的UserJourney和一个新的ProfileEdit策略,但我不确定细节。

谢谢!

马丁

1 个答案:

答案 0 :(得分:1)

您可以通过在配置文件编辑用户旅程中包含Azure AD声明提供程序来启用Azure AD身份验证用户修改其帐户配置文件,如下所示:

<div class="comments">
    <div>
        <h3>Comments</h3>
    </div>

        <%  foreach (System.Data.DataRow myCRow in myCommentDataTable.Rows)
            {
                string CommentID = myCRow[0].ToString();
                string BlogParentID = myCRow[1].ToString();
                string Commenter = myCRow[2].ToString();
                string CommenterEmail = myCRow[3].ToString();
                string Comment = myCRow[4].ToString();
                string CommentDate = myCRow[5].ToString();
                if (BlogParentID == Id)
                {
                    Response.Write("<div class='commentdate pull-right'>" + CommentDate + "</div>");
                    Response.Write("<div class='commenter'>" + Commenter + "</div><br />");
                    Response.Write("<p>" + Comment + "</p>");
                    %><Ajax:Gravatar runat='server' ID='GravatarImage' Email='<%= CommenterEmail  %> ' DefaultImageBehavior='MysteryMan' /><br /><br /><%
                }
            }%>
</div> 

此用户旅程提示最终用户使用其本地帐户或其Azure AD帐户登录,然后在通过对象标识符(对于本地帐户)或备用安全标识符(用于Azure AD帐户),显示配置文件编辑页面。

相关问题