All examples on dohq TeamCity use user/password as authentication.
Unfortunately, the organization I am in right now only use smart card and I have to use token based authentication.
I read the api_client.py file that is part of the package, but I can't really make out how to set the token.
Using standard header, you need to set "Bearer " (like curl --header "Authorization: Bearer "), but I can't see how this is done with:
tc = TeamCity(url, auth=(user, passwd))
Hi,
All examples on dohq TeamCity use user/password as authentication. Unfortunately, the organization I am in right now only use smart card and I have to use token based authentication. I read the api_client.py file that is part of the package, but I can't really make out how to set the token. Using standard header, you need to set "Bearer" (like curl --header "Authorization: Bearer "), but I can't see how this is done with:
tc = TeamCity(url, auth=(user, passwd))
Any help would be greatly appriciated.
Thanks in Advance, Richard