OAuth 2.0 access token flow
- Last Updated: November 9, 2021
- 1 minute read
- DataDirect Connectors
- ODBC
- GitHub 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 GitHub Configuration Manager to obtain an access token to support the access
token flow. See "Obtaining access tokens using the Configuration Manger" for details.
Alternatively, you can obtain an access token from GitHub (both enterprise and cloud
versions). Refer to the GitHub documentation at https://docs.github.com 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 GitHub;AuthenticationMethod=24;HostName=host_name;
AccessToken=access_token;[attribute=value[;...]];
where:
- host_name
- specifies the host name portion of the HTTP endpoint to which you want to send requests. For example, github.enterprise.com for enterprise accounts and api.github.com for cloud accounts.
- access_token
-
specifies the access token required to authenticate to GitHub. 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 GitHub;AuthenticationMethod=24;HostName=api.github.com;
AccessToken=C3TQH9zjwek4CgJCU-4Mxb2DxLNfI2LB3a-dNfpWYx;