Share via

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

Siegfried Heintze 1,906 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

Developer technologies | .NET | Blazor
Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments

Answer accepted by question author

  1. Anonymous
    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

    Was this answer helpful?

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.