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

Siegfried Heintze 1,861 Reputation points
2023-03-01T21:23:11.85+00:00

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?

Thanks

Siegfried

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

Accepted answer
  1. Zhi Lv - MSFT 32,006 Reputation points Microsoft Vendor
    2023-03-02T08:26:20.48+00:00

    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,

    Dillion

    0 comments No comments

0 additional answers

Sort by: Most helpful