Can I authenticate users through the original login screen with Graph API and Azure ADB2C?

I would like to create an authentication function. And I want to manage the user information in ADB2C. ADB2C has a user flow, but I prefer to use my own original login screen that I created myself. For this reason, we believe that we need to use Graph API and MSAL. Is it possible to perform authentication in this configuration?

Original Login Screen(NOT Userflow in Azure ADB2C) ⇔ Graph API ⇔ Azure ADB2C ↑This is the architecture I have in mind. I'm a first-timer, please help me!

2 answers

  • answered 2022-01-24 10:16 Martin Brandl

    I would strongly recommend NOT to use your own form but to customize the Azure AD B2C user interface (See Customize the user interface with HTML templates in Azure Active Directory B2C).

    If you're dead set on using your own form, you have to set up a resource owner password credentials flow. However, due to security concerns, this approach should only be utilized for legacy solutions.

  • answered 2022-01-24 20:36 rbrayb

    There are no Graph API calls for authentication.

    You have to use the B2C screen.

    However, you can embed your screen.

    "For a simpler sign-up or sign-in experience, you can avoid redirecting users to a separate sign-up or sign-in page, or generating a pop-up window. By using the inline frame HTML element, you can embed the Azure AD B2C sign-in user interface directly into your web application".

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum