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 / how to put the button ...
Power Pages
Unanswered

how to put the button of login with azure ad in my home page

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi, i'm trying  to put a button for login with azure active directory, but when i click on the button this redirect to the default login page of power pages. Is any way to solve this problem ?

cgragedaf_0-1668621219616.pngcgragedaf_1-1668621296625.png

cgragedaf_2-1668621404009.png

this is code and snap of the error that i get.

Categories:
I have the same question (0)
  • Fubar Profile Picture
    8,487 Super User 2026 Season 1 on at

    If you are only going to use 1 login provider, then (from the App that is created for your Portal in the Maker interface, under Settings->Authentication Settings ) you can disable all other other enabled providers and set the 1 you want to use as default, and then when the Portals Login page is loaded it will auto redirect to that provider.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you for answer, but I need the button on the home page

  • saveri Profile Picture
    138 on at

    Hii @Anonymous 

    please refer this link Enable Azure AD B2C custom domains - Azure AD B2C | Microsoft Learn you can get some idea

  • ragavanrajan Profile Picture
    7,044 Most Valuable Professional on at

    Hi @Anonymous 

    Please follow the instructions from @Fubar 

    In addition, I wrote an article a while ago to achieve what you expect.  

     

     

     

    Ref here: https://ragavanrajan.medium.com/powerapps-portal-how-to-configure-a-single-external-identity-provider-4423758a3dd5 

     

    NB: Usually single sign-on is the best way which will avoid a button click and improve user experience smoothly 

     

    Hope it helps. 
    ------------

    If you like this post, give it a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users to find it.

     

     

     

  • Amad233 Profile Picture
    27 on at

    It is easy to use only Azure AD as authentication method.

    In my case I need to use both Azure AD (for internal users) and Azure AD B2C (for external users).

    I need to have both buttons in my custom pages in the form of a button of a link itself.

    Is there a way to achieve this ??

     

    For now I have put Azure AD B2C as default authentication method and whenever I click on the Sign-In button it automatically redirects to the login of Azure B2C which is what I wanted for external users.

    All that remains now is for me to put a link somewhere, in the footer for instance, for internal users to login using Azure AD.

    The link should do the same thing that the Azure AD button used to do in the default sign-in page.

     

    Any pro developers of PowerPage plz help, I am new to this platform.

  • Bharath106 Profile Picture
    8 on at

    Did you get to know how to achieve that scenario.
    Any pro developers can you pls provide solution for it.

  • saveri Profile Picture
    138 on at

    Hi Bharath106, can you provide the screenshot of the issue

     

  • Bharath106 Profile Picture
    8 on at

    I have put Azure AD B2C as default authentication method and whenever I click on the Sign-In button it automatically redirects to the login of Azure B2C which is what I wanted for external users.

    All that remains now is for me to put a link somewhere, in the footer for instance, for internal users to login using Azure AD.

    The link should do the same thing that the Azure AD button used to do in the default sign-in page.

    Bharath106_0-1710238682419.png

    need to insert Azure Ad login button in the highlighted part

  • saveri Profile Picture
    138 on at

    You can give both the button in the same page  and user can able to choose any one while clicking sign in show the two button .

     

  • Bharath106 Profile Picture
    8 on at

    I have default login set to azure ad b2c as per requirement so its takes me to above page. Here I need to add button for azure ad login for internal users.

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 53

#2
DP_Prabh Profile Picture

DP_Prabh 40

#3
oliver.rodrigues Profile Picture

oliver.rodrigues 28 Most Valuable Professional

Last 30 days Overall leaderboard