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
12
votes
2 answers

Confused on how to get access tokens from B2C in Blazor App

I have a Blazor Server Side app configured with B2C auth. This app will call a webapi to do any of the data exchanges with my service. B2C auth works fine, and straight from template the config B2C auth…
Tjopsta
  • 495
  • 6
  • 18
12
votes
2 answers

Use native Google Account Picker with B2C

This is more an Azure B2C question than a flutter/android question: TLDR: How can I get a B2C JWT token 'eyJhbGciO...' with a Google access token 'ya29.Glss...'? We are building an app with flutter that uses Azure B2C to manage the users. While this…
Chief Wiggum
  • 2,784
  • 2
  • 31
  • 44
12
votes
1 answer

MSAL Scopes (openid profile offline_access). Basic Simple Profiles May Not be Possible?

MSAL behaves as though there is a hard-coded catch 22 at its API library layer that seems illogical when I use it. string[] scopesArrayNonNullWORKS = new string[] { "email" }; string[] scopesArrayAlreadyThereInMsalCalls_FAILS = new string[] {…
Sql Surfer
  • 1,344
  • 1
  • 10
  • 25
12
votes
3 answers

Searching Active Directory B2C by custom property on User

We are using B2C and storing customer numbers as a Extension field on users. A single user can have one or more customers and they are stored in a comma separated string. What I am doing now is highly inefficient: 1. Get all Users 2. Get…
ruffen
  • 1,695
  • 2
  • 25
  • 51
12
votes
2 answers

Azure B2C Email Validation Template Customization

I am using Azure B2C to handle user access to my App. I have an issue with the reset password workflow. As part of the reset password process a verification email is sent to the registered email address. However the default template for this is…
Ashley Jackson
  • 183
  • 1
  • 1
  • 8
12
votes
4 answers

Azure B2C client credentials grant

I’ve implemented Azure B2C for user login/logout and can get the id_token and pass it to my web API for authorization, all works well. Now, I have some Web API methods that should be only accessed by the client web application (ASP.NET 4.6) which…
zaid safadi
  • 709
  • 7
  • 14
11
votes
1 answer

MSAL for Android fails performing B2C login

I'm using 0.2.2 version of Microsoft Authentication Library (MSAL) Preview for Android library to perform Azure AD B2C login in my native Android app. The library opens the browser to start login process. Afterwards I log in successfully and it…
11
votes
2 answers

Azure AD B2C - "emails" claim in custom policy

I'm looking for a way to add an emails claim (collection of emails) to a custom policy for Azure AD B2C. This application claim is available from the Azure Portal directly but I cannot find a way to implement this in a custom policy which I need to…
10
votes
1 answer

Angular Azure Active Directory B2C Authentication - CORS issue

I am implementing Azure Active Directory B2C authentication in Angular. I am using msal interceptor to connect Azure AD B2C. The authentication request fails with error Access to XMLHttpRequest at 'https://login.microsoftonline.com/...' from…
mani
  • 105
  • 1
  • 10
10
votes
4 answers

How to access Email of an User on B2C using Graph API

I want to know the email address of a user to send an email. On my application, people can sign up with social accounts (google/facebook/Microsoft) or local accounts. When creating a local account we use the email. I found this info about how email…
10
votes
3 answers

Can Azure-AD B2C use a mobile telephone number as a username?

We have a mobile app and website. We would like to use Azure AD-B2C for authentication. We are not going to allow any third party authentication, but instead just use Azure AD in a separate domain. We would prefer to use the user's telephone…
Bryan Schmiedeler
  • 2,977
  • 6
  • 35
  • 74
10
votes
1 answer

how to get Facebook profile picture using Azure AD B2C

I am using MSAL.js and could successfully sign-in/sign-up users in Azure AD B2C using Facebook as identity provider. The problem is that after sign-in I cannot retrieve user's profile picture. Azure AD B2C returns an object identifier which has no…
armache
  • 596
  • 5
  • 22
10
votes
1 answer

Custom B2C Policy for Username based Local Accounts

What do I have to change in the custom policy starter pack to make my sign-in/sing-up's policy username based not email based?
spottedmahn
  • 14,823
  • 13
  • 108
  • 178
10
votes
2 answers

Azure AD B2C integrating with corporate (Azure?) AD accounts

We would like to use Azure AD B2C for our web applications to allow users to sign in either with a 'local' account/password or use their social accounts (Facebook,…
10
votes
1 answer

CORS issue when getting a token in Azure AD B2C (Implict Flow)

We are trying to implement Azure AD B2C authentication with a web app using implict flow. We can login and successfully get redirected to the correct url which includes the correct items on the redirect url (id_token&code). However, as this…
Jon
  • 4,295
  • 6
  • 47
  • 56