OAuth 2.0 access token flow
- Last Updated: November 2, 2020
- 1 minute read
- DataDirect Connectors
- ODBC
- Microsoft Dynamics 365 8.0
- Documentation
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;