Showing results for 
Search instead for 
Did you mean: 
Helper III
Helper III

Portal Login Page - Restrict Azure AD B2C Login Redirection



I have a Powerapps portal login page as below.


portal login sample.PNG


When external user click 'Azure AD B2C' button, it redirects them to the Microsoft login page to enter their username and password. To improve user experience by reducing redirection I would like to know if we can have the Azure AD B2C login username and password fields in this page itself?


Could you advise me on this please?




Super User II
Super User II

Hi, the Azure AD login is an external authentication, for this reason you can't embed the username/pwd in the Portals. any external login will always redirect the user to the authentication provider page.

Are you using the local login at all? you can remove the local sign-in by changing some site settings.

Please review this article for a better understanding of the options available:


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

Power Apps Portals Super User

Oliver Rodrigues


Hi @OliverRodrigues 


Thanks for the reply, this makes sense.


Yes I will be removing the local account login fields, thanks for the link you shared. 



Hi @arjunmusuvathy,

You can customize the login page to be embedded in your Portal itself. I did a quick POC on this a few years ago, and it wasn't the easiest thing to implement. Hopefully it's a little better now: Customize the Azure Active Directory B2C user user interface for portals. - Power Apps | Microsoft D...

Helper III
Helper III

@justinburch  Thanks for the reply, can I know how did you embed the Microsoft login page in the main login page itself please? Is it possible?

Hi @arjunmusuvathy,

You wouldn't embed in the existing page, as that template is not editable. Instead, you would follow the documentation provided to create your own page (which then embeds the data from Azure B2C), and change your "Sign In" button's target.

Helpful resources

PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group


Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Users online (89,129)