web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Unanswered

Access OData API with BC Container On Prem using Windows Auth and Web Access Key

(0) ShareShare
ReportReport
Posted on by 5

Hello,

I'm unable to access the OData API endpoints for Business Central On Prem using Windows Authentication with the username and web access key as the password. I was able to get it working with NTLM however we need it to work with the web access key using Basic Authentication. When I try to query the API with the username and web accese key I get a 401 Unauthorized. This happens with both Postman and our Python application where I base64 encode the credentials into the Basic header  <username>:<web access key>.Using Postman I just enter in the username and web access keys to their fields after I select Basic Authentication.

I'm testing this with the Business Central docker container, but cannot get the API endpoints to accept my Basic Authentication. Should the web access keys still work for on prem BC instances and if so, is there a configuration I'm missing or are my headers/Postman requests formatted incorrectly?

Thank you

I have the same question (0)
  • Dobby94 Profile Picture
    6 on at
    RE: Access OData API with BC Container On Prem using Windows Auth and Web Access Key

    Hey, I can say to you, that accessing nstserver:7048/.../ is working with domain\username and web service access key as a password on on-prem BC20 CU8. That is the basic auth. They want to deprecate it in future versions and use only OAuth2.

    See here: learn.microsoft.com/.../deprecated-features-platform

    And here: learn.microsoft.com/.../authenticate-web-services-using-oauth

    learn.microsoft.com/.../web-services-authentication

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,377

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 2,696 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,512 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans