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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / MSAL authenticated flo...
Power Apps
Unanswered

MSAL authenticated flows in model driven app

(0) ShareShare
ReportReport
Posted on by 323

Hi,

 

We have created two buttons Approve/Reject that invoke a Power Automate flow. The flow is triggered by the HTTP request.

 

prathyoo_0-1713944192040.png

 

prathyoo_1-1713944370051.png

Currently, the URL being invoked is unauthenticated as shown below -

prathyoo_0-1713944510683.png

But we would like to switch the URL to "Any user in my tenant"

prathyoo_1-1713944579041.png

 

For this I understand that I need to use MSAL authentication. Would someone help me with the javascript change to be able to send the Microsoft Entra Id token while calling the flow.

I have the same question (0)
  • Parvez Ghumra Profile Picture
    1,579 Moderator on at

    Hi @prathyoo Is there any reason why you're not using the standard approvals functionality in Power Automate and the Dataverse connector?

  • psreek Profile Picture
    323 on at

    Thanks. This was a client requirement. But, my question was more to do with having a secure call to Power Automate. The Approve/Reject was just an example. If we can figure out how that can be achieved, then we could use it for other functionalities.

  • Parvez Ghumra Profile Picture
    1,579 Moderator on at

    @prathyoo I see. I believe if you use the native Dataverse connector for Power Automate then all of the security etc is handled for you automatically.

  • Damin Profile Picture
    63 on at

    I think you need to add MSAL for SPA, and in this case, the use of CDN for MSAL is imperative, for more details I suggest you to consult this Microsoft document for the configuration and the code needed to call the api. Plus it is not the best practice you can do, if you stay with the Oauth that is already available on power automate for the HTTP request trigger, that would much better.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 842

#2
Valantis Profile Picture

Valantis 563

#3
Haque Profile Picture

Haque 402

Last 30 days Overall leaderboard