Bearer token authentication
- Last Updated: November 16, 2021
- 1 minute read
- DataDirect Connectors
- ODBC
- Teamcity 8.0
- Documentation
Bearer token authentication can be used to authenticate with TeamCity.
To configure the driver to use bearer token authentication:
- Set the Host Name (HostName) option to the base URL of the TeamCity instance to which you want to issue requests. For example, https://teamcity.company.com.
- Set the Authentication Method (AuthenticationMethod) option to
34(Bearer). - Set the Security Token option to specify the security token for the user connecting to the service.
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 TeamCity;HostName=teamcity.company.com;
SecurityToken=12a3=bCD/EfGh4Ijk+Lgd8g-44tk3c527831;
odbc.ini
[TeamCity]
Driver=ODBCHOME/lib/ivteamcity28.so
Description=DataDirect 8.0 TeamCity
...
AuthenticationMethod=34
...
SecurityToken=12a3=bCD/EfGc527831
...
HostName=teamcity.company.com
...
Note: A security token can be obtained from My Settings & Tools>Access
Tokens of your TeamCity instance.