Skip to main content

Notifications

Small and medium business | Business Central, N...
Answered

Different authentication methods between service and ui

Posted on by 5

Hello everyone

We have an On-Premise installation of Business Central 2022, and we want to access OData web services so that our external applications can synchronize data.

In Postman, we've been able to use two identification methods together, by setting the ClientServicesCredentialType parameter:

  • Windows: using NTLM authentication, an Active Directory username and its Windows password.
  • NavUserPassword: using Basic Auth authentication, a BC username and its Web Service Access Key (configured in the BC user configuration page).

But there's an issue with this last method, however, as it makes access to BC's web interface unavailable.

So as it stands, we can use Windows authentication to access OData services. But this isn't our preferred method of accessing a web service, as we're exposing in cleartext in a configuration file the login details of a user in our organization's Active Directory (even if the user is a service account, this is still a vulnerability).

That's why we'd like to know if it's possible to use two different methods for the two accesses to BC:

  • Web interface: Windows/NTLM connection method
  • Web service client: NavUserPassword connection method
  • Verified answer
    KasparsSemjonovs Profile Picture
    KasparsSemjonovs 3,924 Super User 2024 Season 2 on at
    RE: Different authentication methods between service and ui

    You should be able to create 2 instances for database, where each uses different authentication methods.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,188 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,030 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans