无法上传策略。原因:B2C 服务有内部错误

Unable to upload policy. Reason: The B2C service has an internal error

我正在处理 this guide,当我尝试上传我的编辑政策时,我得到:

我能够上传 TrustFrameworkBase.xmlTrustFrameworkExtensions.xml

我也尝试下载我之前上传的现有编辑策略并重新上传,但也失败了。

ProfileEdit.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="ebenefitsdev.onmicrosoft.com"
  PolicyId="B2C_1A_ProfileEdit"
  PublicPolicyUri="http://ebenefitsdev.onmicrosoft.com/B2C_1A_ProfileEdit">

  <BasePolicy>
    <TenantId>ebenefitsdev.onmicrosoft.com</TenantId>
    <PolicyId>B2C_1A_TrustFrameworkExtensions</PolicyId>
  </BasePolicy>

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

我能够解决我的问题。我在 ClientId 字段中有 ApplicationObjectId,反之亦然 this step。一旦我解决了这个问题,问题就消失了。

submitted a PR改进文档。