Keep API key secret from Git/GitHub in Visual Studio 2022 C# Razor Page

preview_player
Показать описание
Use the dotnet user-secrets command to keep secrets (API keys, etc.) separate from our program source code. That way, we can access APIs from our program, using a key, and we can prevent those keys from getting propagated to GitHub, where they may be publicly visible.

This video is part of a playlist on consuming and creating RESTful JSON APIs with C# Razor Pages.

Рекомендации по теме
Комментарии
Автор

Building a hydroponics project for my final year engineering project and I'm "borrowing" a whole lot from your course series.
Salutations from South Africa.

puletshehla
Автор

thanks for the great videos, as a non-programmer, it was useful to understand this from a security perspective as we don't want the API secrets to be stored in GIT- that's a big no no

odeseusX
join shbcf.ru