Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Pages - Customize & Extend
Unanswered

Hiding Azure AD button from Register page

(0) ShareShare
ReportReport
Posted on by 120

Many people have asked for hiding the Azure AD button from the login page and we know the the answer is to have an entry in Site Settings as: Authentication/Registration/AzureADLoginEnabled, and set its value to false.

This does hide the button on the Login page. However, it does not hide the button from the Register page.

 

Is there a separate setting for this, or do I have to use CSS to hide that button now? I'll be disappointed if Authentication/Registration/AzureADLoginEnabled only does half the job. 😅

 

Categories:
  • Conway Profile Picture
    120 on at
    Re: Hiding Azure AD button from Register page

    Thank you again. The Google and Facebook buttons are already working. I was only looking for configuration settings to hide that Azure AD button from the Register page.

     

    To use CSS to hide it, I find uploading my own CSS (instead of modifying OOTB CSS files) and having the following code sufficient.

    Conax_0-1672210023237.png

    I've seen others using

    visibility: hidden;
    which I think was suggested by Microsoft support if I remember correctly, but that would leave a space where the Azure AD button is.

    Conax_1-1672210332475.png

     

    So I prefer to use display: none

    Conax_2-1672210400088.png

     

  • Inogic Profile Picture
    1,023 Super User 2025 Season 1 on at
    Re: Hiding Azure AD button from Register page

    Hi,

     

    In that case, you can try modifying "theme.css" as shown below

    Inogic_1-1672208108994.png

     

    Inogic_0-1672208054859.png

     

    Here's the line of code we added in "theme.css"

     

    .btn-line {
    visibility: hidden;
    }

     

    To add facebook,google button you can follow these links

    https://learn.microsoft.com/en-us/power-apps/maker/portals/configure/configure-oauth2-facebook

    https://learn.microsoft.com/en-us/power-apps/maker/portals/configure/configure-oauth2-google


    If you find this solution helpful, please mark it as accepted solution

  • Conway Profile Picture
    120 on at
    Re: Hiding Azure AD button from Register page

    Thank you. But I do need to allow external login for users to login with Google and Facebook. We just don't use Azure AD login.

  • Inogic Profile Picture
    1,023 Super User 2025 Season 1 on at
    Re: Hiding Azure AD button from Register page

    You need to change Site Settings value from true to false for below listed ones :-

    1. Authentication/Registration/AzureADLoginEnabled
    2. Authentication/Registration/ExternalLoginEnabled

    This helps to disable the Azure AD button from both login as well as register page.

     

    NOTE : Sometimes it takes time to reflect the changes in this case restart your portal.

    If you find this solution helpful, please mark it as accepted solution

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Pages

#1
Fubar Profile Picture

Fubar 69 Super User 2025 Season 1

#2
oliver.rodrigues Profile Picture

oliver.rodrigues 49 Most Valuable Professional

#3
Jon Unzueta Profile Picture

Jon Unzueta 43

Featured topics