Custom external status widget.

Is there a way to make something similar to externalStatusWidget that would display project information in the custom format?
I've managed to add server plugin that generates XML file with information which consisnt of a jsp file in the plugins directory, build-server-plugin-...xml file in the META-INF and actual controller class in WEB-INF/classes.
The problem is that it requires authentication to be able to retrieve this information. This causes problems since this XML is used by external server which aggregates information from several testing frameworks.
Is there a way to exclude it from authentication process?

4 comments

There is a buildServer servlet that looks like it can do httpAuth... Its mapped to httpAuth/* Can you piggy back off that. That is how I trigger my builds with a svn hook script.

http://user:password@buildServerUrl/httpAuth/action.html?add2Queue=buildId

0

So it looks like in the buildServerSpringWeb config file you can add a path that does not require auth.

/login.html /loginSubmit.html /registerUser.html /registerUserSubmit.html /setupAdmin.html /setupAdminSubmit.html /createAdminSubmit.html /externalStatus.html /uploadChanges.html /showAgreement.html ]]>

0

I've managed to disable it this way, but it looks like a hack to me since there's a need to patch teamcity proprietary files. And i was not able to make it work (it still required the auth) if my bean was initialized as a plugin, not as a bean in the buildServerSpringWeb.xml file. Are there any elegant ways to do this?

0

Hello,

Take a look at AuthorizationInterceptor, there is a method
addPathNotRequiringAuth(). You can obtain this interceptor as usual Spring
bean.

--
Pavel Sher
Software Developer
JetBrains, Inc.
http://www.jetbrains.com
"Develop with pleasure!"



"Oleg Afanasiev" <no_reply@jetbrains.com> wrote in message
news:32691345.1203937304415.JavaMail.itn@is.intellij.net...

I've managed to disable it this way, but it looks like a hack to me since
there's a need to patch teamcity proprietary files. And i was not able to
make it work (it still required the auth) if my bean was initialized as a
plugin, not as a bean in the buildServerSpringWeb.xml file. Are there any
elegant ways to do this?



0

Please sign in to leave a comment.