Azure Active Directory Authentication to an API using ASP.NET Web Application and API using ASP.NET Core Web Application in Visual Studio 2019
How does Azure Active Directory Authentication work? Step 1: Log in to Azure Active Directory Step 2: Successful Azure Active Directory returns an access token Unsuccessful Azure Active Directory will deny you access Step 3: From your application you make a http request with the access token in the headers to the API The API receives this token and goes to Azure Active Directory to check if this token is authorised. Step 5: Successful If the API finds that the token is valid then you are granted access to the API and can use its methods such as GET< POST< PUT and DELETE Unsuccessful If the API finds that the token is invalid then you will be denied access to the API and will get a 401 unauthorised. How to create an azure active directory authentication API using ASP.NET CORE Web Application with an Android demonstration Step 1: API in Visual Studio Creating the API 1a. In Visual Studio select "ASP.NET Core Web Application" and press crea...