Migrating and open-sourcing my blog
What changed on my blog - Statiq, GitHub, giscus, and much more.
Today I talk to you about the recent changes I made to my blog when I migrated it to Statiq and open-sourced it.
Handle token retrieval while querying an API
Using a DelegatingHandler
In our daily job, we often have to query secure REST APIs that require our HTTP requests to have a valid access token in their Authorization header. Of course, many APIs come with an SDK that makes the job easier for us as it directly takes care of retrieving a token and sending the authenticated HTTP requests. However, it is not always the case and knowing how to implement that using HttpClient, IMemoryCache, and DelegatingHandler can become pretty useful.
tooling (22)
Azure (15)
tips learned this week (14)
.NET (12)
vscode (10)
package manager (9)
Pulumi (8)
IaC (8)
HTTP (7)
Azure CLI (7)
GitHub (7)
git (7)
GitHub Actions (6)
thoughts (5)
learning (5)
ASP.NET Core (5)
pnpm (5)
DevOps (5)
winget (5)
Azure Functions (4)
Azure DevOps (4)
Vue.js (4)
rest (4)
Azure Key Vault (4)
Azure Active Directory (4)
OpenID Connect (3)
development box setup (3)
PowerShell (3)
nushell (3)
Configuration (3)
Azure SDK (2)
csharp (2)
security (2)
CI/CD (2)
Visual Studio (2)
Azure SQL Database (2)
Azure Storage (2)
Azure Pipelines (2)
shell (2)
OAuth2 (1)
Azure AD B2C (1)
AngleSharp (1)
FinOps (1)
advent (1)
GitHub CLI (1)
Microsoft Entra ID (1)
Nuke (1)
Pipelines (1)
TypeScript (1)
Terraform (1)
Code analysis (1)
Diagram (1)
Vite (1)
Statiq (1)
open source (1)
jest (1)
Azure SignalR (1)
Visio (1)
jq (1)
wingetcreate (1)
records (1)
refit (1)
Azure IoT (1)
Application Insights (1)
Windows Terminal (1)
IT (1)
Microsoft Teams (1)
Razor (1)
Xamarin (1)
Templating (1)