Skip to main content
Community site session details

Community site session details

Session Id : 9brtiUJTyNsGNT455AO+XR
Power Pages - Power Apps Portals
Answered

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

Like (0) ShareShare
ReportReport
Posted on 24 Nov 2019 00:04:15 by 13

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%2Falluviatechb2c.b2clogin.com%2Ftfp%2FAlluviaTechB2C.onmicrosoft.com%2FB2C_1_signupsigninportal%2Fv2.0%2F 

 

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?

  • Community Power Platform Member Profile Picture
    on 08 Jan 2021 at 02:05:48
    Re: Failing to get Azure AD B2C successfully configured for PoC - AppDataPortalBusProvider.cs access denied

    Hi, I'm able to do it.

  • Community Power Platform Member Profile Picture
    on 28 Dec 2020 at 10:12:21
    Re: Failing to get Azure AD B2C successfully configured for PoC - AppDataPortalBusProvider.cs access denied

    @Anonymous have you tried setting up the login page, web templates and site setting as mentioned here?

    I guess you need to set up custom page.

     

  • Community Power Platform Member Profile Picture
    on 09 Dec 2020 at 17:03:49
    Re: Failing to get Azure AD B2C successfully configured for PoC - AppDataPortalBusProvider.cs access denied

    I'm getting the same issue, On the user flow in B2C when I run it, it go through the registration and register the user but redirect to myportal.powerappsportals.com/signin-AAD-B2C_1 and land on page not found error. How to fix this? how can i get page redirect to the profile page?

     

    Thanks,

    -la

  • Sandeep Dhanrajani Profile Picture
    on 03 Dec 2019 at 01:39:32
    Re: Failing to get Azure AD B2C successfully configured for PoC - AppDataPortalBusProvider.cs access denied
    Glad it worked!
  • AlluviaKRob Profile Picture
    13 on 03 Dec 2019 at 00:40:26
    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! 

  • Verified answer
    Sandeep Dhanrajani Profile Picture
    on 25 Nov 2019 at 03:07:41
    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

     
  • AlluviaKRob Profile Picture
    13 on 24 Nov 2019 at 00:19:43
    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".

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Pages

#1
Lucas001 Profile Picture

Lucas001 60 Super User 2025 Season 1

#2
Fubar Profile Picture

Fubar 55 Super User 2025 Season 1

#3
surya narayanan Profile Picture

surya narayanan 35

Loading complete