Azure B2C disable Sign up of a SignUpAndSignIn policy

☆樱花仙子☆ 提交于 2020-12-12 06:11:33

问题


I need some advice on Customising Azure B2C.

I've been looking at both portal based customisation and the Identity Experience Framework.

My key requirement is to have full control of the look and feel of the login experience. However, users must not be able sign up as this is handled by a separate business process. I understand that I cannot use a simple SignIn policy as B2C doesn't provide the required level of customisation.

I'm unable to find any solid documentation that describe how/if this is possible.

I've followed this documentation for the Azure B2C Identity Experience Framework. But can't see where I would be able to disable signup.

https://docs.microsoft.com/en-us/azure/active-directory-b2c/active-directory-b2c-get-started-custom


回答1:


You can disable the sign-up button using the setting.showSignupLink metadata:

<TechnicalProfile Id="SelfAsserted-LocalAccountSignin-Email">
  <DisplayName>Local Account Signin</DisplayName>
  <Protocol Name="Proprietary" Handler="Web.TPEngine.Providers.SelfAssertedAttributeProvider, Web.TPEngine, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" />
  <Metadata>
    <Item Key="setting.operatingMode">Email</Item>
    <Item Key="setting.showSignupLink">false</Item>
    <Item Key="ContentDefinitionReferenceId">api.selfasserted</Item>
  </Metadata>
  <IncludeInSso>false</IncludeInSso>
  <InputClaims>
    <InputClaim ClaimTypeReferenceId="signInName" />
  </InputClaims>
  <OutputClaims>
    <OutputClaim ClaimTypeReferenceId="signInName" Required="true" />
    <OutputClaim ClaimTypeReferenceId="password" Required="true" />
    <OutputClaim ClaimTypeReferenceId="objectId" />
    <OutputClaim ClaimTypeReferenceId="authenticationSource" />
  </OutputClaims>
  <ValidationTechnicalProfiles>
    <ValidationTechnicalProfile ReferenceId="login-NonInteractive" />
  </ValidationTechnicalProfiles>
  <UseTechnicalProfileForSessionManagement ReferenceId="SM-AAD" />
</TechnicalProfile>


来源:https://stackoverflow.com/questions/53300861/azure-b2c-disable-sign-up-of-a-signupandsignin-policy

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!