Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Pages - General Discussions
Unanswered

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

(0) ShareShare
ReportReport
Posted on by

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:
  • Bharath106 Profile Picture
    8 on at
    Re: how to put the button of login with azure ad in my home page

    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.

  • saveri Profile Picture
    138 on at
    Re: how to put the button of login with azure ad in my home page

    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
    Re: how to put the button of login with azure ad in my home page

    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
    Re: how to put the button of login with azure ad in my home page

    Hi Bharath106, can you provide the screenshot of the issue

     

  • Bharath106 Profile Picture
    8 on at
    Re: how to put the button of login with azure ad in my home page

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

  • Amad233 Profile Picture
    27 on at
    Re: how to put the button of login with azure ad in my home page

    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.

  • ragavanrajan Profile Picture
    7,036 Most Valuable Professional on at
    Re: how to put the button of login with azure ad in my home page

    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.

     

     

     

  • saveri Profile Picture
    138 on at
    Re: how to put the button of login with azure ad in my home page

    Hii @Anonymous 

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

  • Community Power Platform Member Profile Picture
    on at
    Re: how to put the button of login with azure ad in my home page

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

  • Fubar Profile Picture
    7,960 Super User 2025 Season 1 on at
    Re: how to put the button of login with azure ad in my home page

    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.

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 >