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 B2C and Xamarin.
In addition to that, there is now a warning on the Azure AD Graph API reference to instead use the Microsoft Graph API. None of the examples for B2C seem to use Microsoft Graph API and there appears to be no description of the level of support for Microsoft Graph with B2C.
I need to be able to create users with custom attributes in B2C and then query them using a Graph API.
What is the correct package to use to interact with Azure AD B2C and are there examples that show how this is done?
The Microsoft Graph API is a RESTful web API that enables you to access Microsoft Cloud service resources. After you register your app and get authentication tokens for a user or service, you can make requests to the Microsoft Graph API. For more information, see Overview of Microsoft Graph.
There are currently no deprecated versions of Microsoft Graph.
Azure AD is Microsoft's solution for managing employee access to SaaS apps and it has features designed for this purpose such as licensing and Conditional Access. Azure AD B2C provides an identity and access management platform for building web and mobile applications.
As of today, we recommend that you use the Azure Active Directory Graph API https://graph.windows.net
to access and manage your B2C tenants.
Azure AD B2C: Use the Graph API
If you read this article, you can learn more about the gaps between AAD and Microsoft Graph API: https://dev.office.com/blogs/microsoft-graph-or-azure-ad-graph
The bottom line in the table states:
- Manage users in B2C tenant (set local accounts, sign in names)
Coming soon (preview)
The rest of this article should hopefully help people decide which API to use today. Ultimately, everything will make it's way to Microsoft Graph... it will just take a little time.
Let me know if this helps!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With