Hi,
I am trying to setup a PCF for a canvas application integrated with MSAL, so that I can access other Azure services from the PCF. Can this be done? I tried using the PublicClientApplication to get the access token, but I am not sure what should be used for the redirect uri. I have tried ssoSilent and acquireTokenSilent methods.
I am able to get it to work in the local test environment. But, when I import it into powerapps, I get the following error.
BrowserAuthError: monitor_window_timeout: Token acquisition in iframe failed due to timeout. For more visit: aka.ms/msaljs/browser-errors.
Here is the config for the PublicClientApplication
try redirect uri as below quoted format where {ClientId} is your app registration id from azure:
"msal{ClientId}://auth"
Thanks for your response. I have tried your uri and a few other uris as well. However, once the PCF is imported into a canvas app, it blocks the redirects and popups. I still have not found a solution for my issue.
For a canvas app, trying using this for the redirect uri:
https://pa-static-ms.azureedge.net/resource/webplayerdynamic/publishedapp/preloadindex
WarrenBelz
109
Most Valuable Professional
Michael E. Gernaey
82
Super User 2025 Season 1
MS.Ragavendar
72