Bearer token authentication can be used to authenticate with GitHub.

To configure the driver to use bearer token authentication:

  • Set the Host Name (HostName) option to the base URL of the GitHub instance to which you want to issue requests. For example, https://github.enterprise.com.
  • Set the Security Token option to specify the personal access token assigned to you.
Note: The Security Token option is not required to be stored in the connection string. It can also be passed separately by the application.

The following example show the connection information required to establish a session using bearer token authentication.

Connection string

DRIVER=DataDirect 8.0 GitHub;HostName=github.enterprise.com;
SecurityToken=12a3=bCD/EfGh4Ijk+Lgd8g-44tk3c527831;

odbc.ini

[GitHub]
Driver=ODBCHOME/lib/ivgithub28.so
Description=DataDirect 8.0 GitHub
...
HostName=github.enterprise.com
...
SecurityToken=12a3=bCD/EfGh4Ijk+Lgd8g-44tk3c527831;
...