Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
anandsowm opened this issue Aug 1, 2023 · 1 comment
Open

Comments

@anandsowm
Copy link

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?

@SpartakusMd
Copy link

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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants