.NET MAUI Windows desktop app and Azure AD B2C sample code

Ajit Soutadekar 1 Reputation point
2022-10-17T07:06:19.693+00:00

I am developing a .NET MAUI WINDOWS desktop application.
Need to integrate the Azure AD B2C authentication for my .NET MAUI app.
What I found on the internet was bits and pieces of code which is not helpful.

Can anyone please share me a simple ***

sample code of .NET MAUI with Azure AD B2C for Windows App?


Thank you in advance.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,961 questions
Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,672 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,773 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Shweta Mathur 28,021 Reputation points Microsoft Employee
    2022-10-18T06:45:55.477+00:00

    Hi @Ajit Soutadekar ,

    Thanks for reaching out.

    Please find the sample of .Net MAUI with Azure AD B2C for each platform -
    https://github.com/Azure-Samples/active-directory-xamarin-native-v2/tree/main/MAUI/MauiAppB2C

    Configuration for Windows Desktop is mentioned here.

    Hope this will help.

    Thanks,
    Shweta

    -----------------------------------------

    Please remember to "Accept Answer" if answer helped you.