Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do you login using token instead of user/password? #43

Closed
richard-nilsson opened this issue Oct 19, 2022 · 1 comment
Closed

How do you login using token instead of user/password? #43

richard-nilsson opened this issue Oct 19, 2022 · 1 comment

Comments

@richard-nilsson
Copy link

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

@richard-nilsson
Copy link
Author

Sorry. Didn't see #23 until I already submitted it.
I will try the suggestion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant