Azure-Samples / active-directory-b2c-custom-policy-starterpack

Azure AD B2C now allows uploading of a Custom Policy which allows full control and customization of the Identity Experience Framework

Home Page:http://aka.ms/aadb2ccustom

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to hide the Sign Up link in the login form using custom policy

anandsowm opened this issue · comments

As per the general suggestion, I added the setting below in the custom policy to hide the Sign Up link that is shown by default in the login screen. Since our business app will add users via MS Graph API, we should not allow user to sign up themselves.
<Item Key="setting.showSignupLink">false</Item>
But with this custom policy change, the sign up link is continued to be shown. What is the right way to address this?

Hey @anandsowm, here's what has worked for me: in the TrustFrameworkExtensions.xml file inside <ClaimsProviders>...</ClaimsProviders> add the following section:

        <ClaimsProvider>
            <DisplayName>Local Account</DisplayName>
            <TechnicalProfiles>
                <TechnicalProfile Id="SelfAsserted-LocalAccountSignin-Email">
                    <Metadata>
                        <Item Key="setting.showSignupLink">False</Item>
                    </Metadata>
                </TechnicalProfile>
            </TechnicalProfiles>
        </ClaimsProvider>