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.