Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
AppSettings and Secrets in ASP.NET Core
Rating: 4.5 out of 5(884 ratings)
4,044 students

AppSettings and Secrets in ASP.NET Core

Understand AppSettings and learn how to secure your application secrets from development to production in ASP.NET Core
Last updated 2/2026
English

What you'll learn

  • AppSettings in .NET Core
  • Accessing Secrets in .NET Core
  • What are Application Secrets and why should you secure them?
  • Options Class
  • Switching Environments
  • Hierarchy for accessing secrets in .NET Core
  • User Secrets in .NET Core
  • Azure Key Vault

Course content

5 sections35 lectures2h 13m total length
  • Welcome2:06

    Explore app settings and secrets in ASP.NET Core, mastering five access methods, their priority, secure development across environments, and deploying secrets with Azure key vault.

  • Secrets in Application2:24

    Identify common application secrets in web apps, including connection strings, secure passwords, oauth client secrets, and third-party api keys, and learn strategies to protect them from development to production.

  • Get most out of the course0:44
  • Why Appsecrets should be secured2:57

    Secure app secrets to prevent exposure of payment gateway APIs, OAuth credentials, and database connection strings. Protecting secrets reduces liability and financial impact from data loss and disrupted sales.

  • Create Project2:13

    Create a new ASP.NET Core MVC project in Visual Studio 2019, enable Razor runtime compilation, and explore the appsettings.json file within the standard MVC folders (models, views, controllers, wwwroot).

  • Add to Github1:32

    Publish the app settings manager to GitHub as source control, creating a private repository, pushing the initial commit, and preparing to log future lecture-specific changes.

Requirements

  • 3-6 months familiarity with C# and SQL
  • Familiar with .NET Core 5

Description

Application Settings is a small piece of .NET Core application! But it is a very CRITICAL piece. Since you have all secrets and passwords.

Not knowing how to configure AppSettings would lead to a vulnerable application and it would be difficult to manage things once the application grows.

There are multiple ways to access your secrets in a .NET Core application, I will be walking you through all the ways in this course.

There is a certain hierarchy that is followed when it comes to a priority about which settings should be read first and knowing the correct order is critical. We will walk through all of that!

Losing control of production passwords, API keys, and other secrets can be extremely costly to any business. In this course, Securing Application Secrets in ASP.NET Core, you will learn how to keep secrets safe in development through to production.

This course will get you up and running with ASP.NET Core AppSecrets and Settings from basics all the way to completely securing them using Azure Key vaults.

Who this course is for:

  • Anyone who wants to understand Application Secrets in .NET 5
  • Securing secrets in your .NET 5 application