Use Function App to register/login/logout Azure B2C users with any UI

Biswajit Kar 0 Reputation points
2023-02-04T14:08:20.9966667+00:00

Can I use my own UI to authenticate users with Azure AD B2C?

I am trying to use Azure AD B2C to authenticate users of an Angular IONIC single-page app.

I understand I can use the UI (either default or customized) that is associated with each Azure AD B2C policy.

For a number of reasons I am not happy with the Azure AD B2C UI (or the effort required to customize it).

Therefore I'd like to use my own UI within my app that would just make calls to Azure AD B2C.

Is that possible? If so, how? I have looked at Azure AD B2C Custom Policies,

but I an not sure if those still use the default (or customized) Azure AD B2C UI.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,568 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. 2023-02-06T13:38:19.86+00:00

    Hi Biswajit Kar,

    To Enable authentication in your own web app by using Azure AD B2C :

    This article shows you how to add Azure Active Directory B2C (Azure AD B2C) authentication to your own ASP.NET web application. Learn how create an ASP.NET Core web application with ASP.NET Core middleware that uses the OpenID Connect protocol.

    Use this article in conjunction with Configure authentication in a sample web app, replacing the sample web app with your own web app.

    For more information: https://learn.microsoft.com/en-us/azure/active-directory-b2c/enable-authentication-web-application?tabs=visual-studio

    To customize the UI elements refer step 4


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    0 comments No comments