Now that we are well-equipped with all the prerequisite knowledge, we can begin coding. Let's build a ProductService application. We are going to secure FlixOne.BookStore.ProductService, which represents one of our microservices. In the solution, the FlixOne.BookStore microservice is represented by the FlixOne.BookStore.ProductService project, and FlixOne.BookStore.Web represents the server-side web application. It will be easier to follow along if you open up the Visual Studio solution, called OpFlixOne.BookStore.sln, which is provided with this chapter. This example uses the client credentials grant.
Note that, because of the ever-changing nature of the Azure portal and the corresponding Azure services UI, it is advisable that you use the Azure Resource Manager (ARM) API and automate some of...