在上传修改后的 trust_framework_extension 文件时,我创建了一个新的声明类型并添加了 Predicates 和 PredicateValidations 元素,但是当我上传文件时出现错误
“命名空间‘ http://schemas.microsoft.com/online/cpim/schemas/2013/06 ’中的元素‘BuildingBlocks’在命名空间中具有无效的子元素‘Predicates’……”
文档显示“buildingBlocks”应包含“Predicates”和“PredicateValidations”,但会引发错误。
“InputValidations”也不再出现在构建块中,因为我也遇到了错误。遵循在线文档:: https://docs.microsoft.com/en-us/azure/active-directory-b2c/active-directory-b2c-reference-password-complexity-custom
错误:: 验证失败:在租户“abc.onmicrosoft.com”的策略“B2C_1A_B_TRUSTFRAMEWORKEXTENSIONS”中发现 1 个验证错误。在租户“abc.onmicrosoft.com”的策略“B2C_1A_B_TRUSTFRAMEWORKEXTENSIONS”的第 78 列第 6 行发现架构验证错误“:元素‘BuildingBlocks’命名空间“ http://schemas.microsoft.com/online/cpim/schemas/2013/06具有无效的子元素‘谓词’命名空间” http://schemas.microsoft.com/在线/cpim/schemas/2013/06 '。预期的可能元素列表:命名空间中的“ClientDefinitions、ContentDefinitions、Localization” http://schemas.microsoft.com/online/cpim/schema
<BuildingBlocks>
<ClaimsSchema>
<ClaimType Id="newPassword">
<InputValidationReference Id="PasswordValidation" />
</ClaimType>
<ClaimType Id="reenterPassword">
<InputValidationReference Id="PasswordValidation" />
</ClaimType>
</ClaimsSchema>
<Predicates>
<Predicate Id="Length" Method="IsLengthRange" HelpText="The password must be between 3 and 5 characters.">
<Parameters>
<Parameter Id="Minimum">3</Parameter>
<Parameter Id="Maximum">5</Parameter>
</Parameters>
</Predicate>
<Predicate Id="Number" Method="IncludesCharacters">
<UserHelpText>a digit</UserHelpText>
<Parameters>
<Parameter Id="CharacterSet">0-9</Parameter>
</Parameters>
</Predicate>
</Predicates>
<PredicateValidations>
<PredicateValidation Id="PasswordValidation">
<PredicateReferences Id="LengthGroup" MatchAtLeast="1">
<PredicateReference …Run Code Online (Sandbox Code Playgroud) azure-ad-b2c ×1