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

Notifications

Announcements

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

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,361 Super User 2025 Season 2 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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Fubar Profile Picture

Fubar 78 Super User 2025 Season 2

#2
Jerry-IN Profile Picture

Jerry-IN 75

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard