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
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
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156