Authenticate users in Dynamics 365 Customer Engagement

Applies to Dynamics 365 for Customer Engagement apps version 9.x

Dynamics 365 Customer Engagement supports three security models for authentication: claims-based authentication, Active Directory authentication, and OAuth 2.0. The type of authentication used depends on the type of deployment your application is accessing (Online, on-premises, or internet facing deployment) and if your application is using the Web API or the Organization Service.

In addition to using the correct security model, applications must establish a communication channel with the Dynamics 365 web services on the target deployment. The SDK run-time assemblies use Windows Communication Foundation (WCF) technology to establish this communication channel.

The SDK assemblies simplify use of WCF technology and claims-based authentication by providing helper proxy classes that make it easy to write applications that connect to and authenticate with the Dynamics 365 web services. By using these helper classes in your application, you can access any Dynamics 365 deployment using the same code and you don’t have to become an expert in claims-based security or WCF programming.

In This Section

Use OAuth to connect to Dynamics 365 web Services

Use OAuth with Cross-Origin Resource Sharing to connect a Single Page Application to Dynamics 365 (online)

Active Directory and Claims-Based Authentication

Connect to Dynamics 365

OAuth 2.0

Authorization Code Grant Flow

Use the Dynamics 365 Web API

Use the Dynamics 365 Organization service