Developer forum

Forum » Integration » Connector Service - The authentication header received from the server was "Negotiate'

Connector Service - The authentication header received from the server was "Negotiate'

Timo Tasala
Reply

Hi!

We are getting error "Error requesting Dynamicweb Service: The HTTP request is unauthorized with client authentication scheme 'Negotiate'. The authentication header received from the server was 'Negotiate'." when trying to contact the Connector Service with the Tester Tool.

Business Central web services are up and running and I can contact them directly from the internet with the Tester Tool (and I since having 1:1 same settings in the Connector as on my local Tester Tool, I suppose the Connector can access BC). Environment is Business Central OnPrem 19.18, Dynamicweb Plugin extension 1.2.0.56 and Connector Service 2.1.0.0. I also noticed that it does not matter what secret I input in the tester tool, it will always give the same error.

==> Any ideas what might be wrong?

Regards,

Timo Tasala


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Hi

A quick one from the GPT. See if this gives you any pointers:
 

That error message is a sly little chameleon — it looks like a Windows authentication (Kerberos/NTLM) negotiation issue, but in a BC/Dynamicweb context it usually points to something far simpler: the request isn’t using Basic authentication at all, even though you think it is.

Let’s walk through this step by step and untangle the likely culprits.


๐Ÿ” What the error really means

The BC SOAP/OData endpoints for OnPrem do not use Negotiate/NTLM unless you explicitly run them in Windows authentication mode.

Dynamicweb Connector only supports Basic authentication against BC OnPrem.

If the server responds with:


 
 
"The HTTP request is unauthorized with client authentication scheme 'Negotiate'. The authentication header received from the server was 'Negotiate'."

…then BC is telling you:

“I didn’t receive a valid Authorization header. So I’m falling back to Windows auth.”

This happens when your tester sends a request without any Basic Auth header — usually because the authentication is not correctly set up.


๐Ÿงฉ Why your Tester Tool seems to "ignore" the secret

This is actually the biggest clue.

If the Tester Tool:

  • accepts any password

  • and still always returns exactly the same error

…that means:

โžค Your Tester Tool never sends Basic authentication at all

Which is typically because one of these is true:

  1. The wrong BC URL is used → calling the normal web client URL instead of the SOAP or OData service endpoint.

  2. BC is configured for Windows authentication instead of NavUserPassword.

  3. The web.config of BC still has Windows as enabled auth instead of NavUserPassword.

  4. The username is not provided in the correct form for BC OnPrem Basic Auth.


๐Ÿงช Things to verify (the practical checklist)

1. Check the BC authentication mode

On the BC server, open:
C:\inetpub\wwwroot\BC190\Web.config (path may differ)

Find the <authentication> section.

You should see NavUserPassword, like:


 
 
<authentication mode="None"> <navAuthentication authenticationScheme="NavUserPassword" /> </authentication>

If it says Windows, BC will respond with Negotiate → and reject Basic auth.


2. Use the correct BC service URL

For SOAP, should look like:


 
 
https://yourserver/BC190/WS/CompanyName/Page/Customer

For OData:


 
 
https://yourserver/BC190/ODataV4/Company('CompanyName')/items

If you accidentally point to:


 
 
https://server/BC190/

then BC serves the web client → and uses Windows auth → → → Negotiate error.


3. Ensure the username format is correct

BC OnPrem requires:


 
 
username@tenant

or


 
 
DOMAIN\username

even when using NavUserPassword.

If the username is provided as simply “username”, BC will not generate a Basic auth header.


4. Check if SSL offloading is altering the headers

Some load balancers, proxies, or reverse proxies strip Authorization headers unless explicitly allowed.

This leads right back to the Negotiate error.


๐Ÿง  Why the Connector Service works differently than your local Tester Tool

Your local Tester Tool can access BC directly, likely inside the LAN or VPN.

The Connector Service sits in the Dynamicweb App Pool on the website — and uses a different security context and network routing.
If BC is expecting Windows authentication, the web app pool identity won’t match, and BC will fall back to Negotiate → unauthorized.


๐ŸŽฏ The most likely fix

Given all the symptoms, the strongest candidate is:

๐Ÿ‘‰ BC is running in Windows authentication mode

and therefore refuses Basic Auth, so both the Tester Tool and Connector never send your credentials.

Switch to NavUserPassword authentication in Web.config
and restart IIS:


 
 
iisreset

Then retest.


โœจ A final little sanity check

Open a browser in Incognito mode and manually hit the BC SOAP endpoint:


 
 
https://yourserver/BC190/WS/Services

If the browser triggers a Windows auth popup, you have Windows authentication active → the connector won't work until changed.

 
Timo Tasala
Reply

1) "The request isn’t using Basic authentication at all, even though you think it is." => We have NavUserPassword in BC server settings and as stated, this works perfectly even from public internet, both with standard password and Web Service Access key. NOTE: We have basic auth in Connector config file. So issue must be the Tester Tool, server configuration or Tester tool config.

 2) "This happens when your tester sends a request without any Basic Auth header" => We have Basic Auth in use (in Connector service config file) and as stated, this works perfectly from public internet by using Tester Tool. So again, BC is not the problem here.

 3) "The wrong BC URL is used" ==> As stated, BC URL is working perfectly from public internet and we are using 1:1 same URL etc. here. 

 4) "The web.config of BC still has Windows as enabled auth instead of NavUserPassword" ==> Didn't understand what this has to do with the issue? BC doesn't need web client for the web services to be available…?

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply

Hi Timo,
you can look on this thread where was a similar problem.
BR, Dmitrij

 

You must be logged in to post in the forum