Azure AD Authentication With ASP.net Core - Part 2

In this part 2 , Configure asp.net core application to use Azure AD Authentication. If you want to know that how to create Azure AD Please go to Part 1

  • Now open Visual Studio ( In my case it is 2019).
  • Choose create new project and "ASP.net core web application" project type.
  • It will then move to following screen. Click on "Change" button under authentication section. org4.png
  • It will open screen to choose account type. Here choose "Work and school accounts". Do configuration as per following. Please give proper domain name ( Active directory name ) created as in part 1. 6.png
  • Click "OK" it will configure it automatically.

Note: If you are planning to use Azure AD in already existing application then you have to do some stuff manually.