Example of two ASP.NET Core 2 MVC and Web API apps secured by IdentityServer4 using Azure Active Directory as external auth provider.
- Install .NET Core 2.0
- In IdSrv's Startup.cs add your Azure AD Application ID.
services.AddAuthentication()
.AddOpenIdConnect("AAD", "Azure Active Directory", options =>
{
{...}
options.ClientId = "[Your Azure AD Application ID]";
{...}
});
}
- Set API, Client and IdSrv projects to start at startup and hit run.