Closed martwana closed 3 years ago
Nice job! Could you add a little note about this type of authentication in readme?
After MR broke code: TeamCity("https://teamcity.example.uk", auth=(login, password)) Now raised error HTTP response body: Authentication required
Yeah this was pushed as a quick fix to enable token auth. I did not check username/password login as personally I think its a bad practice to use in scripts.
That authentication method should really be deprecated in favour or other more secure methods.
I've added another commit to hopefully fix that @timka-s on PR https://github.com/devopshq/teamcity/pull/32
Can you give that a test.
Thanks for fixing that. Just a note that your example should read 'auth_settings=["Token"]', not auth. It took me a while to figure out why it was not working for me
Thanks for fixing that. Just a note that your example should read 'auth_settings=["Token"]', not auth. It took me a while to figure out why it was not working for me
Sorted that
I've modified this library with minimal changes to support being able to use a TeamCity access token.
I'm not entirely sure why there was some functionality to enable this, but it was not fully implemented.
Usage: