Skip to content

rasmy123/aspnetcore2aadauth

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ASP.NET Core 2.0 Azure AD authentication example

This sample application is built on the 2.0 bits to test authentication via Azure AD.

To run it, you'll need to register an application in Azure AD, and fill out the client id and authority either in appsettings.json or user secrets. You will also need to add a client secret (in user secrets preferrably).

You must also add permissions for the app to the Microsoft Graph API:

  1. Find your app in the Azure AD blade's App Registrations tab in Azure Portal
  2. Go to Required permissions
  3. Click Add
  4. Choose Microsoft Graph as the API
  5. Select Sign in and read user profile, View users' basic profile, and View users' email address under Delegated permissions
  6. Click Select and Done

About

ASP.NET Core 2.0 Azure AD authentication example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 99.7%
  • CSS 0.3%