skip to main content
Configuring and connecting to data sources : Authentication : Bearer token authentication
  

Try DataDirect Drivers Now

Bearer token authentication

Bearer token authentication can be used to authenticate with TeamCity.
To configure the driver to use bearer token authentication:
*Set the Server Name (ServerName) 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;ServerName=teamcity.company.com;
SecurityToken=12a3=bCD/EfGh4Ijk+Lgd8g-44tk3c527831;
odbc.ini
[TeamCity]
Driver=ODBCHOME/lib/ivteamcity28.so
Description=DataDirect 8.0 TeamCity
AuthenticationMethod=34
Note: A security token can be obtained from My Settings & Tools>Access Tokens of your TeamCity instance.