I want to put a PowerApp (or Flow, not exactly sure which yet) into SharePoint. Essentially I want to select an item in a list and do something with it's metadata.
The something I want to do involves POST’ing to a REST endpoint belonging to a web-app which is integrated with AzureAD for authentication.
I am struggling to work out how to authenticate with my PowerApp.
I have created an AppRegistration in AzureAd and enabled the ‘user_impersonation’ API, and Granted Trust to it.
The App is configured as a PublicClient.
So now, when I am *not* using PowerApps
The Access Token I am retrieving is a Bearer Token.
I use that Bearer Token to authenticate my called to the web-application’s REST endpoint.
When I am coming in from PowerApps (SharePoint), how do I:
1. Get the user currently signed in to Office365 (optional I guess)
2. Pass the details to AzureAD to Retrieve a token
The same coding paradigms I use above (loading MSAL.dll) does apply here, so what do I do?
Solved! Go to Solution.
Hi @whats_my_name ,
Do you want to use MSAL (Microsoft Authentication Library) in your canvas app?
Thanks for feedback. Unfortunately, the MSAL (Microsoft Authentication Library) is not supported in PowerApps canvas app currently. I afraid that the needs that you want to achieve has not been released in PowerApps.
If you would like this feature to be released and this feature to be in Roadmap, please consider submit an idea to PowerApps Ideas Forum:
I wrote a considered reply, but when I hit the reply button it took me to a sign in page and lost my post.
Frankly I can't be bothered to type it again.
That is exactly to kind of *****ing useless experience I expect from anything power apps related.
Learn how to create your own user groups today!
Check out the new Power Platform Community Connections gallery!
Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.