Basic authentication
- Last Updated: May 13, 2025
- 1 minute read
- DataDirect Connectors
- JDBC
- GitHub 6.0
- Documentation
jdbc:datadirect:github:ServerName=server_name;AuthenticationMethod=Basic;
User=user_name;Password=password;[property=value[;...]];
where:
- server_name
- specifies the base URL of the GitHub service to which you want to
issue requests. For example, github.enterprise.com for enterprise accounts and
api.github.com for cloud accounts. Note: Specifying an HTTPS URL for this property enables data encryption.
- 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.
- property=value
- specifies connection property settings. Multiple properties are separated by a semi-colon.
Note: The User and Password properties are not required to be stored in the
connection string. They can also be sent separately by the application.
The
following example shows how to establish a connection to a GitHub
service:Connection conn = DriverManager.getConnection
("jdbc:datadirect:github:ServerName=github.enterprise.com;
AuthenticationMethod=Basic;DefaultQueryOptions=
(OrgName=xyz;UserName=abc;RepoName=RN1;ProjectId=123;ColumnId=CID1;)
User=jsmith;Password=secret;");Note: The DefaultQueryOption connection
property is optional.