Questions tagged [azure-ad-b2c]

Azure AD B2C is a cloud identity management solution for web and mobile applications targeting your customers (consumers and businesses).

Azure Active Directory B2C

Azure AD B2C is a cloud identity management solution for your web and mobile applications. It is a highly available global service that scales to hundreds of millions of identities. Built on the same enterprise-grade secure platform as Azure AD, Azure AD B2C keeps your applications, your business, and your customers protected.

>> Get started with Azure AD B2C

Features

  • Email-based or username-based local accounts
  • Social identity providers (Facebook, Google, Microsoft and more)
  • Custom identity providers (OpenID Connect, SAML and more)
  • Built-in user journeys (sign up/sign in, edit profile, password reset)
  • Custom user journeys
  • Built-in and custom user attributes
  • Configurable application claims
  • User interface customization
  • Multi-factor authentication

Posting Azure AD B2C questions in Stack Overflow

The following tips will help you get quicker/better answers when posting Azure AD B2C questions:

5577 questions
18
votes
1 answer

Which Graph API should be used with Azure AD B2C

We are looking at using Azure AD B2C in an application and I am confused about which package to use when working with Azure AD B2C. This question discusses the difference between the MSAL and ADAL library: MSAL or ADAL library for use with Azure AD…
17
votes
2 answers

Creating a single instance of a class within a Vue application

I'm new to Vue and I'm struggling to wrap my head around how to implement what seems to me like a good case for a global variable or singleton. The background is that I'm using Azure AD B2C for authentication with the MSAL library. MSAL requires a…
AndyM
  • 1,148
  • 1
  • 10
  • 19
17
votes
1 answer

Azure B2C. Edit custom attribute using Azure Portal

I have created Azure B2C application in Azure Portal. I need to use only sign-in policy for this application(no sign-up). I need to create two kinds of users - Simple User and Admin. For this purpose I have created custom string attribute - Role. It…
Pavel
  • 616
  • 1
  • 7
  • 13
16
votes
2 answers

Allow all domains when adding a user to Azure B2C using the Graph API

I am trying to add a user with the email ...@gmail.com to my B2C directory via the Graph API (C#). I get this as a response: The domain portion of the userPrincipalName property is invalid. You must use one of the verified domain names in your…
rgahan
  • 667
  • 8
  • 17
16
votes
1 answer

Azure AD B2C seems to be creating "unknown" users when refreshing id_token?

It seems like a removed user account in Azure AD B2C is being resurrected (or recreated) when an application is requesting a new token (refresh token). In our case a mobile app requesting tokens. When user accounts have been deleted, users with the…
Jonas Stensved
  • 14,378
  • 5
  • 51
  • 80
15
votes
3 answers

Azure AD B2C - Sign out a user from all sessions

I have 3 websites using a single B2C tenant. I have been asked to set it up so that when a user signs out of one website, sign out of them all. Likewise if their account is deleted. I thought that I would have to introduce a call to Azure on every…
gfyans
  • 1,236
  • 1
  • 16
  • 21
15
votes
5 answers

How do I get an OID claim in ASPCore from Azure B2C

Why do I want this? I'm trying to get a unique identifier from my user which I can connect to database records. There are reasons I don't want to use the Email as the identifier. I read that SUB claim isn't supported with B2C, and to use OID in it's…
15
votes
1 answer

ASP.NET 5 API - Azure AD B2C

I'm currently developing an application and almost finished my front-end. So I want to start with the back-end. I used to program in ASP.NET 4, but since I start a brand new application (B2C and B2B) I thought it might be interesting to make it in…
14
votes
3 answers

AADB2C90068: The provided application with ID is not valid against this service. Please use an application created via the B2C portal and try again

We have created Userflow policy(SignUp and SignIn) for the user authentication in Azure B2C tenant. When we try to run the user flow, we are unable to see our application in the list of application configured. When we try to hit the Azure B2C…
Rakesh Rajagopal
  • 153
  • 1
  • 1
  • 6
14
votes
2 answers

B2C Popup on iOS: "My App" Wants to Use "b2clogin.com" to Sign In

After upgrading Microsoft.Identity.Client within Xamarin.Forms from 1.x to 4.x, most things work much the same. However, login to iOS results in a popup that says: "My App" Wants to Use "b2clogin.com" to Sign In This allows the app and website to…
Lamarth
  • 506
  • 4
  • 12
14
votes
4 answers

Enable Javascript on B2C Custom Policy

Javascript is disabled on the Client Side, even though i have added below as per documentation.
veejar
  • 141
  • 1
  • 3
13
votes
1 answer

Token returned by B2C is not decoded by JWT.MS

I'm following the tutorial at https://learn.microsoft.com/en-us/azure/active-directory-b2c/tutorial-create-user-flows. I created the signup/signin user flow and I just tried using it. I am choosing Google provider since I have it defined. I type-in…
mnj
  • 2,539
  • 3
  • 29
  • 58
12
votes
2 answers

msal.js 2.0 tokenResponse null after loginRedirect

I am developing an Angular 10 app that utilizes Azure B2C for policy and user management. I set up my app registration in Azure Active Directory as a singlepage app without the implicit option checked. I am using msal.js 2.0 @azure/msal-browser to…
afriedman111
  • 1,925
  • 4
  • 25
  • 42
12
votes
1 answer

How to integrate azure b2c with react

I am working with react and I have to give my user login through Azure B2C, So I am trying to do that but I am not able to find out how to do that and what is the. What I have tried I got this example from Microsoft site which is done using plain…
manish thakur
  • 760
  • 9
  • 35
  • 76
12
votes
1 answer

Azure AD B2C - how to propogate new user claims to the Access Token

I am using Azure AD B2C to authenticate users of my mobile app. I use Microsoft.Identity.Client on the device AcquireTokenSilent and AcquireTokenInteractive to manage user authentication state. Everything works great. When the user has completed…
Adrian Frielinghaus
  • 658
  • 1
  • 9
  • 15