在Google / Facebook注册Azure AD B2C之后跳过验证页面

时间:2019-01-17 15:52:27

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

我想禁用/跳过验证页面,该页面要求在Google / Facebook注册后修改显示名称/名字/姓氏。我想直接重定向到我的应用程序。我正在使用AD B2C自定义策略。

我试图删除<TechnicalProfile Id="SelfAsserted-Social">中的InputClaims和OutputClaims,但是它不起作用( 索赔子项不在索赔集合中的错误)

enter image description here

1 个答案:

答案 0 :(得分:2)

您必须从用户旅程中删除业务流程步骤4,以便不提示新用户输入任何输入声明:

  

注意:删除了业务流程步骤4后,必须重新编号其后的业务流程步骤。

<OrchestrationStep Order="4" Type="ClaimsExchange">
  <Preconditions>
    <Precondition Type="ClaimsExist" ExecuteActionsIf="true">
      <Value>objectId</Value>
      <Action>SkipThisOrchestrationStep</Action>
    </Precondition>
  </Preconditions>
  <ClaimsExchanges>
    <ClaimsExchange Id="SelfAsserted-Social" TechnicalProfileReferenceId="SelfAsserted-Social" />
    </ClaimsExchanges>
</OrchestrationStep>

相反,业务流程步骤5将创建 user 对象,并使用从外部身份提供商处获得的声明:

<OrchestrationStep Order="5" Type="ClaimsExchange">
  <Preconditions>
    <Precondition Type="ClaimsExist" ExecuteActionsIf="true">
      <Value>objectId</Value>
      <Action>SkipThisOrchestrationStep</Action>
    </Precondition>
  </Preconditions>
  <ClaimsExchanges>
    <ClaimsExchange Id="AADUserWrite" TechnicalProfileReferenceId="AAD-UserWriteUsingAlternativeSecurityId" />
  </ClaimsExchanges>
</OrchestrationStep>