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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Business Central forum

Support for machine to machine scenario in cloud production tenant

(0) ShareShare
ReportReport
Posted on by 25

Hi,

When looking at the endpoint overview:

https://docs.microsoft.com/en-us/dynamics-nav/endpoints-apis-for-dynamics

It clearly states that the web service keys are not supported in production, how should a machine to machine scenario be carried out if it's not supported?

The only supported option seems to be the access code flow in Azure AD, which requires user input to be able to retrieve a token which is not that nice for a e.g. windows service or similar.

Or is there a support for Client credentials flow(only provide Client id and Secret with the admin consent approach) but with no guides/docs/tutorials available(or that i did not manage to find)?

If not, how do others do it in production? Still use web service keys?

Any feedback is welcome,

Emil

Categories:
  • Suggested answer
    Stefano Demiliani Profile Picture
    37,172 Most Valuable Professional on at

    Not so clear your question but yes, you can use basic authentication (username and web service access key) also in production.

  • EmilW Profile Picture
    25 on at

    Hi, sorry for being unclear, on the page that describes the different API endpoint alternatives:

    docs.microsoft.com/.../endpoints-apis-for-dynamics

    It states on the Authentication line that it needs to be "Azure Active Directory(AAD)" for the cloud production endpoints/use cases, and that "Basic authentication. Username and web service access key as password." is only used for the non production use cases. That's how i interpret it but maybe it's just that AAD is available in Prod but not in the others, or how do you see it?

    Was the question clearer :-)?

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Business Central

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans