仅包含注册页面的 Azure AD B2C 自定义策略

标签 azure azure-ad-b2c

我想在 Azure AD B2C 中创建自定义策略。我在 starterpack 中找不到这样的例子.

我检查了这篇文章Azure AD B2C Link to Sign Up Page (Not Sign In)而且,如果我理解正确的话,现有的自定义 signup_signin 策略没有任何 URL 可以直接出现在“注册”页面中。创建“注册 v2”流程是可行的,但我需要一个自定义流程,并且从构建中复制代码并将其放置到入门包中的 LocalAccounts 示例中是行不通的。

这是从“注册 v2”流程下载的 UserJourney 代码

<UserJourney Id="B2CSignUp_V2"> 
  <OrchestrationSteps>
    <OrchestrationStep Order="1" Type="ClaimsProviderSelection" ContentDefinitionReferenceId="api.idpselections.signup"> 
      <ClaimsProviderSelections> 
        <ClaimsProviderSelection TargetClaimsExchangeId="SignUpWithLogonEmailExchange" />           
      </ClaimsProviderSelections> 
    </OrchestrationStep>
  </OrchestrationSteps> 
</UserJourney>

我尝试将入门包中的 OrchestrationStep 1 和 2 替换为此处的,但不起作用。

最佳答案

在您的自定义策略中,在 B2C_1A_TrustFrameworkBase.xml 文件中,将用户旅程 Id="SignUpOrSignIn"的第一个编排步骤替换为以下编排步骤,您将直接登录到注册页面 -

<OrchestrationStep Order="1" Type="ClaimsProviderSelection" ContentDefinitionReferenceId="api.idpselections.signup">
  <ClaimsProviderSelections>
    <ClaimsProviderSelection TargetClaimsExchangeId="SignUpWithLogonEmailExchange" />
  </ClaimsProviderSelections>
</OrchestrationStep>

关于仅包含注册页面的 Azure AD B2C 自定义策略,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56497567/

相关文章:

azure - 如何从不同变量组Azure Pipeline访问相同变量?

azure-ad-b2c - 通过 AD Graph API 更新 B2C 自定义属性字符串集合

Azure AD B2C 审核 API

angular - 对于 Angular 应用程序,应在 msal.service 文件的 b2cscopes 数组中添加什么?

asp.net-core - Azure AD B2C KMSI(让我保持登录状态)不会让我保持登录状态

c# - 无法使用 GraphServiceClient 更新 Azure Active Directory B2C 用户 - ASP.NET MVC

azure - az aks get-credentials 使用自定义 ssh key ?

azure - 将所有 Azure AD 组及其所有者导出到 csv 文件

python-3.x - 如何将 Azure-cli 命令的输出保存在变量中

visual-studio - 发布时 Visual Studio 2019 Azure KeyVault 配置错误