Basic authentication
- Last Updated: November 9, 2021
- 1 minute read
- DataDirect Connectors
- ODBC
- GitHub 8.0
- Documentation
This string includes the connection options used to connect with basic authentication.
DRIVER=DataDirect 8.0 GitHub;HostName=host_name;
AuthenticationMethod=0;User=user_name;Password=password;
[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.
- user_name
-
specifies the user name that is used to connect to your GitHub service.
- password
-
specifies the password used to connect to your GitHub service.
- attribute=value
- specifies connection option settings. Multiple option attributes are separated by a semi-colon.
Note: The User and Password options are not required to be stored in the connection string.
They can also be passed separately by the application.
The following example connection string includes the options for connecting with the basic authentication.
DRIVER=DataDirect 8.0 GitHub;HostName=api.github.com;
AuthenticationMethod=0;User=jsmith;Password=secret;