This video is available to students only

Storing User Secrets

In this lesson, we're going to see how to securely store user secrets

Storing User secrets#

Right now, we're storing the Stripe credentials inside appsettings.development.json file and it's not an ideal thing to do. When we're using private keys, we want to store them in a location where it's not visible to anyone and we can share the appsettings file to GitHub without any fear. core gives us access to secret manager where we can store the credentials and this option is available just for development.

We can just follow the steps and store our credentials inside secret manager. Let's go to the API project inside terminal and run:

Start a new discussion. All notification go to the author.