Most of the applications today are using Azure KeyVault to store secrets.
Azure Key Vault is a cloud service for securely storing and accessing secrets. A secret is anything that you want to tightly control access to, such as API keys, passwords, certificates, or cryptographic keys.
How to configure your local machine
https://docs.microsoft.com/en-us/aspnet/core/security/app-secrets?view=aspnetcore-6.0&tabs=windows
Open your Visual Studio > right-click in your project > select the option “Manage User Secrets”
Note: I created this documentation with Visual Studio 2022Add this structure and run your project
Note: If you have this error when you run the project, maybe the structure of the keys is not correct.
Add Comment