Basic authentication
- Last Updated: November 9, 2021
- 1 minute read
- DataDirect Connectors
- ODBC
- GitHub 8.0
- Documentation
Basic authentication can be used to authenticate with GitHub.
To configure the driver to use basic authentication:
- Set the Host Name (HostName) option to the host name portion of the HTTP endpoint to which you want to send requests. For example, api.github.com.
- Set the Authentication Method (AuthenticationMethod) option
0(Basic). - Set the User (User) option to specify the name of the user connecting to the service.
- Set the Password (Password) option to specify the password for the user connecting to the service.
Note: The User and Password options are
not required to be stored in the connection string. They can also be sent separately
by the application.
The following examples show the connection information required to establish a session using Basic.
Connection string
DRIVER=DataDirect 8.0 GitHub;HostName=api.github.com;
AuthenticationMethod=0;User=jsmith;Password=secret;
odbc.ini
[GitHub]
Driver=ODBCHOME/lib/ivgithub28.so
Description=DataDirect 8.0 GitHub
...
AuthenticationMethod=0
...
HostName=api.github.com
...
Password=secret
...
User=jsmith
...