Open droopy4096 opened 4 years ago
@vasokot could you please test the above example with our teamcity instance?
@droopy4096 Does it work with user password
pair? If answer is yes you probably should try use auth=(username, token)
, i.e. change your password to your token.
Hi, I have the same problem. I can't use user+password pair since our Teamcity server is linked to a SAML Identity Provider and the basic authentication is disabled. The only option is authentication tokens.
I tried a few things but couldn't make it work. I noticed there are token-related variables in the Configuration
class so I tried the following
config = Configuration()
config.api_key = {'test': '<token>'}
config.api_key_prefix = {'test': 'Bearer'}
tc = TeamCity("<teamcity-url>", auth=None, configuration=config)
but still no luck.
@vasokot could one of our DevOps-team look at the issue?
Unsure if this is still active, but I've fixed this in https://github.com/devopshq/teamcity/pull/29
I've tried several ways of using auth token:
and
all unsuccessful with HTTP 404 error.
HTTP response body: Invalid authentication request or authentication scheme is not supported