Look at the
AuthenticationHeaderValue
constructor you're calling:
AuthenticationHeaderValue Constructor (System.Net.Http.Headers) | Microsoft Docs[
^]
The first parameter is the authentication scheme. The second parameter is the scheme parameter.
You are passing a schema of "Authorization", giving a header of:
Authorization: Authorization NLAuth ...
I suspect you want the header to be:
Authorization: NLAuth ...
which means "NLAuth" is the scheme:
var authenticationHeaderValue = new AuthenticationHeaderValue("NLAuth", "nlauth_account=...");