MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.26k stars 21.44k forks source link

Azure AD B2C User flow : Local account is set as None then other provider buttons are not working. #112714

Closed satishrabari closed 8 months ago

satishrabari commented 1 year ago

An issue with Azure AD B2C User Flow: Other provider buttons (e.g., Google or Microsoft) are not functioning when the Local account option is set to "None."

Description: When attempting to create a User Flow without a local account option in Azure AD B2C, the other provider buttons fail to work properly. Users encounter errors such as "Uncaught TypeError: document.getElementById(...) is null" at line number authorize:8290:63331.

image

Buy a coffee for me if you want. 👍


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

Naveenommi-MSFT commented 1 year ago

@satishrabari It would be great if you could add a link to the documentation you are following for these steps? This would help us redirect the issue to the appropriate team. Thanks!

satishrabari commented 1 year ago

@Naveenommi-MSFT
Here is the link User-flow

ManoharLakkoju-MSFT commented 1 year ago

Hi @satishrabari

It seems that you are facing an issue with Azure AD B2C User Flow. When you create a User Flow without a local account option, the other provider buttons fail to work properly. Users encounter errors such as "Uncaught TypeError: document.getElementById(...) is null" at line number authorize:8290:63331.

This issue occurs because the User Flow requires at least one identity provider to be selected. When you set the Local account option to "None," there are no identity providers available for users to sign in with, which causes the error you are seeing.

To resolve this issue, you can either select at least one identity provider or remove the User Flow without any identity providers. You can add identity providers that are supported by Azure Active Directory B2C to your User Flows using the Azure portal. You can also add identity providers to your custom policies.

I hope this helps! Let me know if you have any other questions.

ManoharLakkoju-MSFT commented 1 year ago

@satishrabari We are going to close this thread as resolved but if there are any further questions regarding the documentation, please tag me in your reply and we will be happy to continue the conversation

satishrabari commented 1 year ago

@ManoharLakkoju-MSFT I added two identity providers in this as you see in the screenshot.

  1. Microsoft Account
  2. Google Account

that is why I selected none for the local account. I need to display only those two options for sign-in.

ManoharLakkoju-MSFT commented 1 year ago

@satishrabari I'd recommend working closer with our support team via an [Azure support request] (https://docs.microsoft.com/en-us/azure/azure-portal/supportability/how-to-create-azure-support-request). Thank you for your time and patience throughout this issue.

germanfidalgo commented 1 year ago

I have exactly same problem. if "None" is selected under local accounts, even though you select Google and Microsoft as identity providers it does not work.

JacobClinton commented 11 months ago

I'm also having this problem. I have two OpenID Connect providers and as soon as I set 'Local Accounts' to 'None' neither of the social account buttons do anything on the sign in page. I'm getting the following error in the console:

image

Can this issue be reopened? It seems to be far from resolved.

ManoharLakkoju-MSFT commented 11 months ago

@JacobClinton @germanfidalgo Thanks for bringing this to our attention. I'm going to assign this to the document author so they can take a look at it accordingly

@garrodonnell Can you please check and add your comments on this doc update request as applicable.

satishrabari commented 11 months ago

@ManoharLakkoju-MSFT I will help your support team let me know about that.

JacobClinton commented 11 months ago

@ManoharLakkoju-MSFT I was looking into this more yesterday and it seems specific to the 'Sign In' flow. The 'Sign Up and Sign In' flow works as expected. Let me know if you need any more information.

JacobClinton commented 11 months ago

I've just checked and the problem is replicated on the Edit Profile flow.

garrodonnell commented 9 months ago

Hi @ManoharLakkoju-MSFT, I'm unclear on the update requested, can you please clarify what the ask for docs is on this?

garrodonnell commented 8 months ago

reassign: @ManoharLakkoju-MSFT

ManoharLakkoju-MSFT commented 8 months ago

@satishrabari Thank you for your feedback!

Since this issue isn't directly related to improving our docs, and to gain a better understanding of your issue, I'd recommend working closer with our support team via an [Azure support request] (https://docs.microsoft.com/en-us/azure/azure-portal/supportability/how-to-create-azure-support-request). Or you can leverage our Q&A forum by posting your issue there so our community, and MVPs can further assist you in troubleshooting this issue or finding potential workarounds.

[Teams Q&A forum] (https://docs.microsoft.com/en-us/answers/topics/46488/office-teams-windows-itpro.html) for technical questions about the configuration and administration of Microsoft Teams on Windows. [Microsoft Teams Community forum] (https://answers.microsoft.com/en-us/msteams/forum?sort=LastReplyDate&dir=Desc&tab=All&status=all&mod=&modAge=&advFil=&postedAfter=&postedBefore=&threadType=All&isFilterExpanded=false&page=1) Thank you for your time and patience throughout this issue.