Bearer token authentication
- Last Updated: May 13, 2025
- 1 minute read
- DataDirect Connectors
- JDBC
- GitHub 6.0
- Documentation
This string includes the properties used to connect with bearer token authentication.
jdbc:datadirect:github:ServerName=server_name;
SecurityToken=security_token;[property=value[;...]];
where:
- server_name
- specifies the base URL of the GitHub service to which you want to
issue requests. For example, https://github.enterprise.com for enterprise accounts.
Note: Specifying an HTTPS URL for this property enables data encryption.
- security_token
- specifies the personal access token assigned to you.
- property=value
- specifies connection property settings. Multiple properties are separated by a semi-colon.
The following example shows how to establish a connection to a GitHub service:
Connection conn = DriverManager.getConnection
("jdbc:datadirect:github:ServerName=github.enterprise.com;
SecurityToken=12a3=bCD/EfGh4Ijk+Lgd8g-44tk3c527831;");