Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@justinyoo
Created September 28, 2016 03:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justinyoo/ff998171e0740f07c548046b355e1dc2 to your computer and use it in GitHub Desktop.
Save justinyoo/ff998171e0740f07c548046b355e1dc2 to your computer and use it in GitHub Desktop.
Deserialising .NET Core Configuration Settings
{
"authentication": {
"azureAd": {
"aadInstance": "https://login.microsoftonline.com/",
"domain": "[TENANT_NAME].onmicrosoft.com",
"tenantId": "[TENANT_ID]",
"clientId": "[CLIENT_ID]",
"clientSecret": "[CLIENT_SECRET]",
"callbackPath": "[CALLBACK_URL]"
}
},
"connectionStrings": [
{
"name": "MyDbContext",
"connectionString": "[CONNECTION_STRING]"
}
],
"logging": {
"includeScopes": false,
"logLevel": {
"default": "Debug",
"system": "Information",
"microsoft": "Information"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment