skip to main content
Welcome to Progress DataDirect for ODBC for Microsoft Dynamics 365 Driver: Version 8.0.0 : Connection string examples : OAuth 2.0 access token flow
  

Try DataDirect Drivers Now

OAuth 2.0 access token flow

The access token flow passes the access token directly from the client to the Dynamics 365 service for authentication.
Note: The strings demonstrated in this section use the DSN-less format. For additional formats, see "Using a connection string."
Note: On Windows platforms, as opposed to using a third-party application such as Postman, you can use the Progress DataDirect Dynamics 365 Configuration Manager to obtain an access token to support the access token flow. See "Obtaining access refresh tokens using the Configuration Manger" for details.
Note: Access tokens are temporary and must be replaced to maintain the session without interruption. The life of an access token is typically one hour.
DRIVER=DataDirect 8.0 Microsoft Dynamics 365;ServiceURL=serviceurl;
AccessToken=access_token;[attribute=value[;...]];
where:
serviceurl
specifies the base URL of the Dynamics 365 instance to which you want to issue requests. For example, https://mywebinstance.api.crm.dynamics.com/api/data/v9.1/.
access_token
specifies the access token required to authenticate to Dynamics 365. This option allows you to set the access token manually.
attribute=value
specifies connection option settings. Multiple option attributes are separated by a semi-colon.
The following example connection string includes the options for connecting with the OAuth 2.0 access token flow.
DRIVER=DataDirect 8.0 Microsoft Dynamics 365;ServiceURL=https://mywebinstance.api.crm.dynamics.com/api/data/v9.1/;
AccessToken=C3TQH9zjwek4CgJCU-4Mxb2DxLNfI2LB3a-dNfpWYx;