Microservice Auth example with OpenID Connect, OAuth 2.0, and Azure AD

Now we are well-equipped with all the prerequisite knowledge to go for coding. Let's try and build a ToDoList application. We are going to secure TodoListService, which represents one of our microservices. In the solution, the ToDoList microservice is represented by the TodoListService project. And ToDoListWebApp represents the server-side web application. It will be easier to follow if you open up the Visual Studio solution named OpenIdOAuthAzureAD.sln provided with this chapter. This example uses the client credentials grant.

Note that due to the ever-changing nature of Azure portal and the corresponding Azure services UI, it is advisable that you use the Azure Service ...

Get Building Microservices with .NET Core now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.