Where are .NET 7 updates to Azure Active Directory Blazor Server Samples?

Siegfried Heintze 1,861 Reputation points

I've been studying https://github.com/Azure-Samples/ms-identity-blazor-server/tree/main/WebApp-your-API/B2C#about-the-code and it is not clear to me how I would start with the "dotnet new blazorserver" command and recreate the REST API service. It looks like all the discussion in this section is for modifying the blazorserver client and not the blazorserver REST API service. I don't see any mention of the REST API controller, for example.

How would I recreate the client and REST API service described https://github.com/Azure-Samples/ms-identity-blazor-server/tree/main/WebApp-your-API/B2C starting with the "dotnet new blazorserver" commands to create the blazorserver client and the blazorserver REST API service so I get all the nice new features of .NET 7?



A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,418 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,825 questions
0 comments No comments
{count} votes

Accepted answer
  1. Zhi Lv - MSFT 32,036 Reputation points Microsoft Vendor

    Hi @Siegfried Heintze

    You can refer to the following articles:

    Enable authentication in your own web API by using Azure AD B2C

    How to secure a Web API built with ASP.NET Core using the Azure AD B2C

    User's image

    Besides, in your referred sample, the API application locate in the Service folder, you can refer to the sample code to build your application, pay attention to the package reference and the project dependencies. If you have any issue with referring the sample, just raise the issue on GitHub Issues.

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

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best regards,


    0 comments No comments

0 additional answers

Sort by: Most helpful