azure - 当我尝试上传 ProfileMFAPhoneNumber 的 B2C 自定义策略时,出现验证错误

标签 azure azure-active-directory azure-ad-b2c-custom-policy

我刚开始使用 Azure AD B2C,实际上,我正在尝试上传自定义策略并收到此错误消息

验证失败:在租户“yourtenant.onmicrosoft.com”的策略“B2C_1A_EDIT_MFA”中发现 1 个验证错误。在目录“9fb5a2ef-1daf-482b-b390-”中找不到带有“policyId”的策略:B2C_1A_EDIT_MFA_TRUSTFRAMEWORKEXTENSIONS d037167e4474'。在目录“9fb5a2ef-1daf-482b-b390-d037167e4474”中找不到带有“policyId”的策略:B2C_1A_EDIT_MFA_TRUSTFRAMEWORKEXTENSIONS。

我的自定义策略具有以下 xml 代码:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<TrustFrameworkPolicy
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  xmlns="http://schemas.microsoft.com/online/cpim/schemas/2013/06"
  PolicySchemaVersion="0.3.0.0"
  TenantId="yourtenant.onmicrosoft.com"
  PolicyId="B2C_1A_Edit_MFA"
  PublicPolicyUri="http://yourtenant.onmicrosoft.com/B2C_1A_Edit_MFA">

  <BasePolicy>
    <TenantId>yourtenant.onmicrosoft.com</TenantId>
    <PolicyId>B2C_1A_Edit_MFA_TrustFrameworkExtensions</PolicyId>
  </BasePolicy>

  <RelyingParty>
    <DefaultUserJourney ReferenceId="EditMFAPhoneNumber" />
    <TechnicalProfile Id="PolicyProfile">
      <DisplayName>PolicyProfile</DisplayName>
      <Protocol Name="OpenIdConnect" />
      <OutputClaims>
        <OutputClaim ClaimTypeReferenceId="objectId" PartnerClaimType="sub"/>
      </OutputClaims>
      <SubjectNamingInfo ClaimType="sub" />
    </TechnicalProfile>
  </RelyingParty>
</TrustFrameworkPolicy>

如果有人帮助我上传自定义政策,我将不胜感激。

最佳答案

yourtenant.onmicrosoft.com?

yourtenant 需要替换为租户的名称

关于azure - 当我尝试上传 ProfileMFAPhoneNumber 的 B2C 自定义策略时,出现验证错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68405193/

相关文章:

azure - 在azure中存储不安全的全局信息

visual-studio-2010 - CacheInstaller.exe 已停止工作

c# - VS2017上SQL Server连接超时

c# - 使用图形 API 将成员添加到 azure Active Directory 中的组会出现 URl 无效错误

c# - Powershell 类似于 C# 中的 Azure 登录

azure - 如何让启用 MSI 的 Function App 访问 Key Vault?

Azure B2C : Generating the code_challenge

azure - 如何修改 Azure Web 应用程序的 Azure AD B2C 登录/注册页面

azure - 在azure上检索CLSID为{00024500-0000-0000-C000-000000000046}的组件的COM类工厂