Sascha Manns

My personal Blog about Linux, Windows Programming and other random stuff.


Minimal API-Key Solution

Problem I was looking for a solution to provide a minimal solution for API key checks with minimal effort. Solution ApiKeyMiddleware.cs: public class ApiKeyMiddleware { private readonly RequestDelegate _next; private const string APIKEYNAME = "ApiKey"; public ApiKeyMiddleware(RequestDelegate next) { _next = next; } public async Task InvokeAsync(HttpContext …
.NET ASP .NET Core Lesson learned

Synchronise Github Repository with Azure DevOps

Problem Sometimes we face the problem that we want to synchronise an existing Gitub repository with another repository on Azure DevOps. For example, to deploy from there to Azure. So what is the best way to proceed? Solution After several attempts, I found the best solution for me. First, I added the following secrets in the "Secrets" section of the Github Actions: AZUREPAT (Here you add …
ASP .NET Core Lesson learned Github
  • 1