web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Failing to get Azure A...
Power Pages
Answered

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

(0) ShareShare
ReportReport
Posted on 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?

Categories:
I have the same question (0)
  • AlluviaKRob Profile Picture
    13 on at

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

  • Verified answer
    Sandeep Dhanrajani Profile Picture
    Microsoft Employee on at

    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

     
    Sign-up and Sign-In user flow.png
    Sign-up and Sign-In user flow Authority Site Setting.png
  • AlluviaKRob Profile Picture
    13 on at

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

  • Sandeep Dhanrajani Profile Picture
    Microsoft Employee on at
    Glad it worked!
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    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

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @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
    Microsoft Employee on at

    Hi, I'm able to do it.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
Valantis Profile Picture

Valantis 58

#2
11manish Profile Picture

11manish 49

#3
Haque Profile Picture

Haque 28

Last 30 days Overall leaderboard