简体   繁体   English

Azure AD B2C自定义登录策略显示SignUpSignIn

[英]Azure AD B2C Custom SignIn Policy Displays SignUpSignIn

I have a custom SignIn policy, because I need to fetch something from an application database (via REST API) during the sign in process. 我有一个自定义的登录策略,因为我需要在登录过程中(通过REST API)从应用程序数据库中获取某些内容。

So I have this user journey 所以我有这次用户旅程

<UserJourney Id="SignIn">
      <OrchestrationSteps>

        <OrchestrationStep Order="1" Type="CombinedSignInAndSignUp" ContentDefinitionReferenceId="api.localaccountsignin">
          <ClaimsProviderSelections>
            <ClaimsProviderSelection ValidationClaimsExchangeId="LocalAccountSigninEmailExchange" />
          </ClaimsProviderSelections>
          <ClaimsExchanges>
            <ClaimsExchange Id="LocalAccountSigninEmailExchange" TechnicalProfileReferenceId="SelfAsserted-LocalAccountSignin-Email" />
          </ClaimsExchanges>
        </OrchestrationStep>

        <OrchestrationStep Order="2" Type="ClaimsExchange">
          <ClaimsExchanges>
            <ClaimsExchange Id="AADUserReadWithObjectId" TechnicalProfileReferenceId="AAD-UserReadUsingObjectId" />
          </ClaimsExchanges>
        </OrchestrationStep>

        <OrchestrationStep Order="3" Type="ClaimsExchange">
          <ClaimsExchanges>
            <ClaimsExchange Id="GetCustomDbObj" TechnicalProfileReferenceId="GetCustomDbObj" />
          </ClaimsExchanges>
        </OrchestrationStep>

        <OrchestrationStep Order="4" Type="SendClaims" CpimIssuerTechnicalProfileReferenceId="JwtIssuer" />

      </OrchestrationSteps>
      <ClientDefinition ReferenceId="DefaultWeb" />
    </UserJourney>

You can see that in step #3, I have a reference to a custom technical profile that fetches some data from a custom REST API. 您可以看到在第3步中,我引用了一个自定义技术配置文件,该配置文件从自定义REST API中获取了一些数据。

In the first step, I display (supposedly) the sign in page, it references api.localaccountsignin 第一步,我显示(据说)登录页面,它引用了api.localaccountsignin

<ContentDefinition Id="api.localaccountsignin">
        <LoadUri>https://mytenant.b2clogin.com/static/tenant/default/signin.cshtml</LoadUri>
        <RecoveryUri>https://mytenant.b2clogin.com/static/tenant/default/signin.cshtml</RecoveryUri>
        <DataUri>urn:com:microsoft:aad:b2c:elements:contract:unifiedssp:1.0.0</DataUri>
        <Metadata>
          <Item Key="TemplateId">azureBlue</Item>
        </Metadata>
      </ContentDefinition>

The problem is that when I use the policy, I see a page that resembles the signup+signin unified policy 问题是,当我使用该策略时,看到的页面类似于注册+登录统一策略

在此处输入图片说明

Instead of just the sign in policy, which is what I desire. 我希望的不仅仅是登录策略。

I suspect that it has something to do with 我怀疑这与

<OrchestrationStep Order="1" Type="CombinedSignInAndSignUp" ContentDefinitionReferenceId="api.localaccountsignin">

More specifically, CombinedSignInAndSignUp But I don't know what to put instead. 更具体地说, CombinedSignInAndSignUp但是我不知道该放什么。 I tried using ClaimsExchange but it didn't work. 我尝试使用ClaimsExchange但是没有用。

Is there a solution? 有解决方案吗?

As per this : 按照这个

You can achieve this by setting SignUp to “False”. 您可以通过将SignUp设置为“ False”来实现。

<Item Key=”setting.showSignupLink”>False</Item>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用无密码 azure B2C 登录自定义策略生成 Azure AD 登录日志的推荐方法是什么? - What is the recommended approach for generating Azure AD Signin logs with passwordless azure B2C signin custom policy? 带有 KMSI 的 Azure 广告 b2c 自定义策略,浏览器关闭后自动登录不起作用 - Azure ad b2c custom policy with KMSI, auto signin not working after browser close 启用了MFA的Azure AD B2C注册-登录策略-自定义登录页面 - Azure AD B2C SignUp-SignIn policy with MFA turned on - Custom Login Page Rest API 在自定义策略中调用 Azure AD B2C 登录 - Rest API call during Azure AD B2C SignIN in Custom Policy 通过Azure AD B2C自定义策略尝试登录时,Discord api返回未经授权的401 - Discord api returns 401 unauthorized when trying signin via Azure AD B2C custom policy Azure AD B2C - 只有通过自定义策略才能在首次登录场景中重置密码? - Azure AD B2C - Password Reset on First SignIn scenario only possible via Custom Policy? Azure AD B2C 注册和登录页面的自定义 URL - Custom URL for Azure AD B2C signup and signin pages Azure 通过 AD 进行 B2C 登录 - Azure B2C signin over AD 在自定义策略中更改 azure ad b2c 的背景图像 - Change Background image of azure ad b2c in custom policy 用于启用/禁用 MFA 的 Azure AD B2C 自定义策略 - Azure AD B2C custom policy to enable/disable MFA
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM