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 Apps / Power Apps Wrap Authen...
Power Apps
Unanswered

Power Apps Wrap Authentication Error - Error AADSTS50011: The redirect URI specified in the request does not match

(0) ShareShare
ReportReport
Posted on by 1,207
I have a Power App that I've wrapped, built and signed. It installs to my device successfully but is failing at the sign in stage. I get the following error:
 

The redirect URI 'msauth://com.[PACKAGENAME]/[SIGNATURE HASH] specified in the request does not match the redirect URIs configured for the application 'AZURE CLIENT ID'. Make sure the redirect URI sent in the request matches one added to your application in the Azure portal

 

This error occurs if the redirect URI (reply URL) configured in the Power App Wrap porject and the Azure AD app registration don't match.

 

I examined the reply URL in both Azure and in my app settings in Wrap and they match apart from one character in the signature hash. It appears that Azure is substituting the equals sign at the end of the hash with the HTML entity for equals. I changed the redirect URI in the app to match the one in the registration and rebuilt/resigned etc but get the same error.

 

I found a solution for the error on Microsoft but it isn't related to Wrap so the solution it proposes doesn't work for my scenario.

 

https://learn.microsoft.com/en-us/troubleshoot/azure/active-directory/error-code-aadsts50011-redirect-uri-mismatch 

 

I'm hoping someone out there has encountered and hopefully solved this issue. 

Categories:
I have the same question (0)
  • powerprince Profile Picture
    8 on at

    Hi

    I have been trying to resolve the same from yesterday.
    Somehow i already tried the method mentioned By Microsoft. It didn't Worked.  

    But today i came across it again going through your post and tried...Worked! 😉

    So here What i Understood.
    First its Not Problem From App Side but Azure Side (According to Microsoft Documentation).

    Second The Steps that i did
    1- Leave the Android Hash Field Blank and Build the App...Succeeded (Idk But Maybe it Autogenerated the Redirect URI in Azure But any case Ignore that )
    2- Run the App in Mobile and When Got this Mismatch Error.

    powerprince_1-1687613917832.jpeg

    3- Get the URI and Go Back To Azure App Registration (You can Find With the ID Mentioned in Error)
    4- Authentication and Add Platform
    5- Select Android
    6- Put Package Name and Android Hash According to Image i Mentioned (Replace the %3D With = Sign)
    OR
    Easy Way Instead Step 5 Select this

    powerprince_0-1687615726000.png

    and Provide URI Under "Custom Redirect"
    7- Configure and Save if it Does.
    8- Refresh and Run Again the App and Do Sign In...Should Work. (maybe wait a little to reflect the changes)

    Hope it will  be Helpful

    Thanks & Regards  🙂

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard