cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

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
Highlighted
Power Apps
Power Apps

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
Highlighted
New Member

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".

Highlighted
Power Apps
Power Apps

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
New Member

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! 

Highlighted
Power Apps
Power Apps

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

Glad it worked!

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Users online (5,641)