web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Hiding Azure AD button...
Power Pages
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:
I have the same question (0)
  • Inogic Profile Picture
    1,283 Moderator on at

    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

  • Conway Profile Picture
    120 on at

    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,283 Moderator on at

    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

    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

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
rezarizvii Profile Picture

rezarizvii 55

#2
11manish Profile Picture

11manish 48

#3
Valantis Profile Picture

Valantis 46

Last 30 days Overall leaderboard