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

Опубликовано: 15 Сентябрь 2022
на канале: Brandan Jones
2,007
29

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.

Source code is freely available on GitHub at https://github.com/discospiff/PlantDi...