cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Dhina
Frequent Visitor

Configuring authentication with Dynamics 365/PowerApps Portals

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? 

 

Best,

Dhina

14 REPLIES 14

Dhina
Frequent Visitor

Thanks for sharing, Joe. That's great news.

To confirm - you tested with the PowerApps Portals. Right?

There's also a post from Natraj Yegnaraman on authenticating against CDS.

 

>> https://www.youtube.com/watch?v=25tncJEBb7M

 

-Pawan

View solution in original post

Thanks I was in touch with Natraj already who helped me

Joe

Anonymous
Not applicable

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. 

Technologies:

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.

 

Helpful resources

Announcements
Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Center-of-Excellence-Starter-Kit-cropped 768x460.png

The Total Economic Impact™ of Power Virtual Agents

Read this 2021 commissioned study, conducted by Forrester Consulting.

Microsoft Ignite 768x460.png

Find your focus

Explore the latest tools,training sessions,technical expertise, networking and more.

Top Solution Authors
Top Kudoed Authors
Users online (1,980)