Skip to content

Latest commit

 

History

History
51 lines (35 loc) · 2.02 KB

README.md

File metadata and controls

51 lines (35 loc) · 2.02 KB

Contoso Conference

Build Status

ASP.NET Core 3.1 Web API to manage the fictitious world-famous Contoso Conference.

Overview

Contoso Conference is held every other year and it presents speakers from all around the world to talk about the latest technologies.

Prerequisites

  • An Azure account with an active subscription
  • An Azure AD tenant
  • An Azure AD Application to represent the Web API you want to protect
  • An Azure AD Application to represent the client (e. g. Postman) you want to allow access to the protected Web API
  • Visual Studio 2019

Getting started

  1. Clone this project.

  2. Replace AzureAd configuration section in appsettings.json file with the values generated for your Azure AD registered Application that represents the Web API you want to protect.

    "AzureAd": {
      "Instance": "https://login.microsoftonline.com/",
      "Domain": "[Enter the domain of your tenant, e.g. contoso.onmicrosoft.com]",
      "ClientId": "[Enter the Client Id (obtained from the Azure portal), e.g. ba74781c2-53c2-442a-97c2-3d60re42f403]",
      "TenantId": "[Enter the Tenant Id (obtained from the Azure portal), e.g. da41245a5-11b3-996c-00a8-4d99re19f292]",
      "Audience": "Enter the Application ID URI (obtained from the Azure portal), e.g. api://ba74781c2-53c2-442a-97c2-3d60re42f403"
    }
    ...
  3. Build the solution file.

  4. Press F5 to start the debug session.

Notes

This is my attempt at building a Web API on ASP.NET Core protected with Azure Active Directory using Microsoft Identity Platform. The domain model is based on a Demo Conference API hosted in Azure used by Microsoft in an API Management tutorial.

License

MIT License

Copyright © 2022 Felipe Romero