azure - Registration only site with custom policy
问题描述
I have a task to create registration only custom policy. So I need a page to pick local account or different social provider. And after the user will be navigate to the proper registration site. I can manage this by standard policies, but I have to do this job with custom policies. Are there any was to do such think with custom policies? I didn't find any registration only reference in the starter pack....
rgds, 'child
解决方案
这在此处进行了介绍。
您可以拥有任意数量的 IDP。
然后,用户旅程的第一步将拥有您需要的尽可能多的 ClaimsProviderSelections。此示例用于添加 Azure AD。
<ClaimsProviderSelections>
...
<ClaimsProviderSelection TargetClaimsExchangeId="AzureADContosoExchange" />
</ClaimsProviderSelections>
更新
另外,请查看 B2C 入门包。
<UserJourney Id="SignUpOrSignIn">
<OrchestrationSteps>
<OrchestrationStep Order="1" Type="CombinedSignInAndSignUp" ContentDefinitionReferenceId="api.signuporsignin">
<ClaimsProviderSelections>
<ClaimsProviderSelection TargetClaimsExchangeId="FacebookExchange" />
<ClaimsProviderSelection ValidationClaimsExchangeId="LocalAccountSigninEmailExchange" />
</ClaimsProviderSelections>
<ClaimsExchanges>
<ClaimsExchange Id="LocalAccountSigninEmailExchange" TechnicalProfileReferenceId="SelfAsserted-LocalAccountSignin-Email" />
</ClaimsExchanges>
</OrchestrationStep>
<!-- Check if the user has selected to sign in using one of the social providers -->
<OrchestrationStep Order="2" Type="ClaimsExchange">
<Preconditions>
<Precondition Type="ClaimsExist" ExecuteActionsIf="true">
<Value>objectId</Value>
<Action>SkipThisOrchestrationStep</Action>
</Precondition>
</Preconditions>
<ClaimsExchanges>
<ClaimsExchange Id="FacebookExchange" TechnicalProfileReferenceId="Facebook-OAUTH" />
<ClaimsExchange Id="SignUpWithLogonEmailExchange" TechnicalProfileReferenceId="LocalAccountSignUpWithLogonEmail" />
</ClaimsExchanges>
</OrchestrationStep>
您会看到有两个“ClaimsProviderSelection”,一个用于本地帐户,一个用于 Facebook。
推荐阅读
- javascript - 博主:删除相关文章的重复帖子
- c++ - 如何使用 C/++ 在 linux 中正确写入磁带驱动器?
- python - 将 numpy 数组与 np.allclose() 进行比较
- html - 将图像拉伸到网站的一半,然后是渐变
- ruby - CococaPods:pod install 使机器崩溃
- logging - 记录通过 runas 启动的 robocopy 输出
- visual-studio-2017 - 在 Visual Studio2017 中加载动态生成的 XML 文件的最佳选择是什么
- html - 超过了 Django 最大递归深度。无限查看循环
- javascript - 使用 JS 将 REST 数据附加到矩阵网格
- java - 为什么这个 unban 命令总是给我 NullPointerException?