Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Pages - Power Apps Portals
Answered

Password Reset Redirects to "Sign In Failed" page

(0) ShareShare
ReportReport
Posted on by 106

Hey all,

 

I've configured my Power Apps portal to use Azure B2C for external authentication. Everything works great except for this one piece. When a user resets their password they are redirected to .../Account/Login/ExternalAuthenticationFailed with this error:

 

FlowHawk_0-1620233281188.png

 

If they click "Sign in" and use their newly reset password, they authenticate correctly. What that means is that the password reset flow is resetting their password correctly, but just redirecting the user to an error page. How can I change this user experience?

 

Note: I set up the Azure AD B2C using the wizard at make.preview.powerapps.com so I haven't manually configured any settings.

  • Christian Leverenz Profile Picture
    1,214 on at
    Re: Password Reset Redirects to "Sign In Failed" page

    Hi @bechespuiaovi ,

    i think pkce is not supported in portals. Had the same issue a while ago and we had to switch the challenge off for the application registered for portals (was not ad, but another provider).

    See here for the doc: https://docs.microsoft.com/en-us/powerapps/maker/portals/configure/configure-openid-provider

    Sorry for the disappointing answer,

      Christian

  • bechespuiaovi Profile Picture
    2 on at
    Re: Password Reset Redirects to "Sign In Failed" page

    Hi Oliver,

     

    How about the case when the AAD app is configured to be used in Authorization Code Flow with PKCE ? This is my case, I can't enable any checkboxes as here:

     

    bechespuiaovi_0-1639052032560.png

    Whats the solution in this case?  I get the same redirect to error page after password reset.

     

    Thanx

  • greggdavenport Profile Picture
    55 on at
    Re: Password Reset Redirects to "Sign In Failed" page

    Thank you @FlowHawk !

  • Bryant Boyer Profile Picture
    106 on at
    Re: Password Reset Redirects to "Sign In Failed" page

    @gdavenport glad it got you through it! It's definitely a difficult journey to take on. After Oliver helped me through this issue I made a youtube video so that I wouldn't forget the whole process I went through: Leverage Azure B2C for Authentication in Power Apps Portal - YouTube

     

    If you get stuck again, it might be of help.

  • greggdavenport Profile Picture
    55 on at
    Re: Password Reset Redirects to "Sign In Failed" page

    ok two things on this:

    1. I can't even access a wizard for setting up B2C for my portals
    2. I've been wrestling with the Microsoft documentation for manual B2C setup for 3 days and it's been terribly frustrating. This forum post saved the day, thank you so much!
  • justinburch Profile Picture
    Microsoft Employee on at
    Re: Password Reset Redirects to "Sign In Failed" page

    Hi @FlowHawk,

    If you haven't already, I would definitely recommend submitting a ticket to Microsoft so this can be appropriately tracked and investigated. I'm not sure if anyone from the product team browses this community, but I think that's their preferred method of identifying issues so that they know who the point of contact is.

    Glad to see you got a workaround, though!

  • oliver.rodrigues Profile Picture
    9,342 Most Valuable Professional on at
    Re: Password Reset Redirects to "Sign In Failed" page

    I am glad it worked 

     

    @justinburch would you be able to let the product team aware of this possible issue? 

  • Bryant Boyer Profile Picture
    106 on at
    Re: Password Reset Redirects to "Sign In Failed" page

    Thank you Oliver!! I applied all the changes except the claims ones and it worked!!

    I don't know if anyone from the product team is here in the forum, but it would be helpful feedback I think that the wizard in the make.preview.powerapps.com sets up the issuer incorrectly for password reset flows.

     

    Thanks again Oliver, you rock!

  • Verified answer
    oliver.rodrigues Profile Picture
    9,342 Most Valuable Professional on at
    Re: Password Reset Redirects to "Sign In Failed" page

    Thanks for the snapshots.. try the follwoing changes:

     

    App Registration > Authentication

    • add another Redirect URI, with just the Portal URL
    • enable ID Tokens for implicit grant

    OliverRodrigues_0-1620760068856.png

    SignUpSignIn > Properties

    • those look fine to me

    SignUpSignIn > User Attributes / Application Claims

    • I normally also enable Surname/Given Name, but that's optional

    Reset Password > Properties

    • Issuer claim doesn't seem right to me, can you select the other (non-TFP) option from the drop-down (but keep TFP selected in the toggles there):

    OliverRodrigues_1-1620760518717.png

     

    Reset Password > Application Claims

    • In my environment I only have selected Given Name/Surname, but I don't think this would make any difference

    Portal Configuration > Valid Issuers

    • Here you need both Issuer URL for your Sign Up Sign In + Reset Pwd flows, the article above I shared explains how to retrieve those URLs

     

    hope this helps

  • Bryant Boyer Profile Picture
    106 on at
    Re: Password Reset Redirects to "Sign In Failed" page

    Here are some screenshots. This is all in the developer tenant where I didn't make any customizations:

     

    FlowHawk_0-1620755470512.pngFlowHawk_1-1620755480825.pngFlowHawk_2-1620755492414.png

    FlowHawk_3-1620755510795.pngFlowHawk_4-1620755517422.pngFlowHawk_5-1620755526507.png

    FlowHawk_6-1620755542450.png

    FlowHawk_7-1620755552490.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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June 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 > Power Pages

#1
Lucas001 Profile Picture

Lucas001 60 Super User 2025 Season 1

#2
Fubar Profile Picture

Fubar 55 Super User 2025 Season 1

#3
surya narayanan Profile Picture

surya narayanan 35