devopshq / teamcity

dohq-teamcity is a Python package providing access to the JetBrains TeamCity server API.
https://devopshq.github.io/teamcity/
MIT License
33 stars 12 forks source link

No support for guestAuth #35

Closed matneh closed 8 months ago

matneh commented 3 years ago

From https://www.jetbrains.com/help/teamcity/rest/teamcity-rest-api-documentation.html#REST+Authentication

Using access to the server as a guest user (if enabled) include guestAuth before the /app/rest part, e.g. http://<TeamCity Server host>:<port>/guestAuth/app/rest/builds.

There is a way to access without using a username & password. Can you enable this feature?

matneh commented 8 months ago

Answering my own question, this seems to work:

    tc = TeamCity("https://teamcity/guestAuth", configuration=myConfig)