cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AlluviaKRob
Level: Power Up

Failing to get Azure AD B2C successfully configured for PoC - AppDataPortalBusProvider.cs access denied

I followed B2C setup guidance from:

https://docs.microsoft.com/en-us/powerapps/maker/portals/configure/configure-openid-settings

 

https://readyxrm.blog/2019/07/24/configure-azure-ad-b2c-for-powerapps-portals/

 

In Chrome browser, I see an HTTP Error 401 after hitting the sign in button

URL: https://lgps01.powerappsportals.com/Account/Login/ExternalLogin?returnUrl=%2F&provider=https%3A%2F%2...

 

After enabling diagnostic logging, I discovered the following message:

RequestData:, RequestPath:, RequestExtension:, SessionId:, UserId:, CorrelationId:00000000-0000-0000-0000-000000000000, Elapsed:0, RequestMethod:, RequestContentType:, RequestAccept:, RequestCacheControl:, UserAgent:, HandlerName:, HandlerExecuted:False, VaryByCustom:, MemberName:OnSubscriptionErrorAsync, SourceFilePath:G:\Agents\BA1256\_wap\143\s\Framework\Adxstudio.Xrm\AspNet\PortalBus\AppDataPortalBusProvider.cs, SourceLineNumber:150, ExceptionMessage:Access is denied

 

I tried searching the internet, but have not been able to uncover any clues for next steps. Can anyone help?

1 ACCEPTED SOLUTION

Accepted Solutions
PowerApps Staff sandeepd
PowerApps Staff

Re: Failing to get Azure AD B2C successfully configured for PoC - AppDataPortalBusProvider.cs access denied

Can you re-check your site settings as per the documentation especially the value for Authentication/OpenIdConnect/[Federation-Name]/Authority setting? Your issue seems similar to the one reported in the forum (See the post and solution provided in the post there)

Specifically steps for this particular configuration are described in detail in the section "Sign up and Sign In user flow" in the blog here

 

View solution in original post

4 REPLIES 4
AlluviaKRob
Level: Power Up

Re: Failing to get Azure AD B2C successfully configured for PoC - AppDataPortalBusProvider.cs access denied

Furthermore, when I Run User Flow from Azure AD B2C tenant it runs successfully (registering a new user) until right after entering the new password. Then it tries to redirect back to the PowerApps Portal and fails with "Page not found" error. I checked Azure AD B2C and the user is there, but the Profile says "Unknown".

PowerApps Staff sandeepd
PowerApps Staff

Re: Failing to get Azure AD B2C successfully configured for PoC - AppDataPortalBusProvider.cs access denied

Can you re-check your site settings as per the documentation especially the value for Authentication/OpenIdConnect/[Federation-Name]/Authority setting? Your issue seems similar to the one reported in the forum (See the post and solution provided in the post there)

Specifically steps for this particular configuration are described in detail in the section "Sign up and Sign In user flow" in the blog here

 

View solution in original post

Highlighted
AlluviaKRob
Level: Power Up

Re: Failing to get Azure AD B2C successfully configured for PoC - AppDataPortalBusProvider.cs access denied

I updated Authority setting and on the RedirectURI, I changed suffix "signin-B2C" to "signin" and the issue is resolved. Thanks! 

PowerApps Staff sandeepd
PowerApps Staff

Re: Failing to get Azure AD B2C successfully configured for PoC - AppDataPortalBusProvider.cs access denied

Glad it worked!

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (5,055)