Enterprise Framework

Software Solutions in the Enterprise

ASP.NET Core appsettings.json with AzureAD Properties

ASP.NET Core appsettings.json with AzureAD Properties


Here are appsettings.json properties for configuration of AzureAD in ASP.NET Core



{
  "AzureAd": {
    "Instance": "https://login.microsoftonline.com/",
    "Domain": "yourtenantdomain.onmicrosoft.com",
    "ClientId": "{ClientId}",
    "TenantId": "common",
    "CallbackPath": "/signin-oidc", // defaults to /signin-oidc
    "ClientSecret": "{YourSecret}",

}



Additional Examples


https://github.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2


Comments are closed