#SharePointProblems | Koskila.net

Solutions are worthless unless shared! Antti K. Koskela's Personal Professional Blog

Posts from November 2021

Blog posts published in November 2021

Posts from November 2021 (4)

  • Cover image for How to update from deprecated Microsoft.Azure.Services.AppAuthentication to new and shiny Azure.Security.KeyVaults.Secrets?
    NEW
    Published on
    Authors
    koskila

    How to update from deprecated Microsoft.Azure.Services.AppAuthentication to new and shiny Azure.Security.KeyVaults.Secrets?

    So, a while ago I posted about a fairly simple way to write your code for fetching secrets (and other confidential stuff) from Azure Key Vault in such a way, that it would work the same way both in Azure and on your local dev box. I find this pretty important, as it reduces the need for weird workarounds and fallbacks in your code, and at the same time enables you to harness the Azure Key Vault for that sweet spot of "good enough security without breaking your back or the bank".
  • Cover image for Fixing Blazor WebAssembly .NET 6 MSAL authorization bug
    Published on
    Authors
    koskila

    Fixing Blazor WebAssembly .NET 6 MSAL authorization bug

    Let's make this short and sweet. In this particular case, upgrading a Blazor WASM solution to .NET 6 broke the authentication when deployed to Azure. The same issue could probably happen to a fresh project, though. This is what you're running into: If you open your browser console, you'll see 2 interesting errors - first: dotnet.6.0.0.o2we6pverp.js:1 mono_wasm_runtime_ready login.microsoftonline.com/common/oauth2/v2.
  • Cover image for How to nuke your Git(Hub) commit history?
    Published on
    Authors
    koskila

    How to nuke your Git(Hub) commit history?

    Ah - this was a fun one. I needed to figure out how to purge, flush and clear your commit history on GitHub. Turns out it isn't as easy as clicking a button in the web user interface - the world is apparently not ready yet! 😁 Luckily, it wasn't that complicated either - and the steps should work for other flavors of git as well. Background Always remember to .gitignore your secrets, folks! And if you forget, pray you're not committing to a public repository!
  • Cover image for How to fix "Unable to cast object of type 'System.Net.Http.HttpRequestMessage' to type 'Microsoft.AspNetCore.Http.HttpRequest'."
    Published on
    Authors
    koskila

    How to fix "Unable to cast object of type 'System.Net.Http.HttpRequestMessage' to type 'Microsoft.AspNetCore.Http.HttpRequest'."

    This article explains how to fix an issue where your Azure Functions function (yes, that's a capital F and a lowercase f to denote the difference between the product and the piece of compute) fails to fire when a POST request comes in, even though it's configured to do so, and instead throws a somewhat confusing error message about HttpRequestMessage not being castable to HttpRequest - even though you KNOW HttpRequestMessage works just fine for receiving POST requests with payload!
Whitewater Magpie Ltd.
© 2026
Static Site Generation timestamp: 2026-02-03T09:01:56Z