TeamCity предоставляет интерфейс AuthorizationInterceptor в своем открытом API, который вы можете вставить в код своего плагина, что позволяет вам контролировать требования авторизации.
shamelessPlug Это то, что я использовал при написании страницы состояния tcMonitor . / shamelessPlug
Вот пример кода о том, как его использовать:
/* Add the objects into the constructor and spring will make them
available for you */
public StatusPageController(SBuildServer server,
AuthorizationInterceptor authorizationInterceptor,
UrlMapping urlMapper) {
// Tell teamcity that auth is not required for this page.
authorizationInterceptor.addPathNotRequiringAuth(myUrl);