I noticed that the Authentication capability is now enabled for Power Virtual Agent, so tried to play with it to see how it works in the context of Dynamics 365 Portals/PowerApps Portals. I am able to successfully configure the Authentication parameters and was able to update my topic to enable the authentication actions.
The problem point is that the PVA wants to use the redirect_uri = https://token.botframework.com/.auth/web/redirect and it constucts the authorize request as "https:/myportals.microsoftcrmportals.com/_services/auth/authorize?client_id=04467598ef817506&response_type=token&redirect_uri= https://token.botframework.com/.auth/web/redirect.
This fails on the portal as the portal expects a valid portal url as the redirect_uri.
For my troubleshooting purposes, I modified the "Authorization URL Query String Template" to hardcode the portal's home page url and this time, the portal authorizes the request and gets the token as expected. But the entire Portal page where the bot is embedded gets refreshed when I click on the "Authenticate" button, hence I lost the context of the bot's authentication.
Can the PVA be configured to be authenticated with Dynamics 365 Portals? Am I missing something here?
Solved! Go to Solution.
Tomasz has written a post and once I followed that it worked for me
I feel like this thread has answered a different question from the one originally asked. My interpretation of the original question is: How do I pass a users's sign in token already established via the Portal to the bot we have exposed on that portal via Dynamics Omnichannel so that the user can interact with the bot under the security and context of that user. The solution suggested assumes the user has not already authenticated via the web site (portal) and outlines a process where the user will need to sign in again.
Dynamics Portal > Dynamics Omnichannel > Power VA
Dynamics Omnichannel appears to support passing of authentication from the portal but it is not clear if Omnichannel can then pass an authentication context on to Power VA.
Check out the new Power Platform Community Connections gallery!
Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.
Congratulations, the new Super User Season 2 for 2021 has started!
Read this 2021 commissioned study, conducted by Forrester Consulting.
Explore the latest tools,training sessions,technical expertise, networking and more.