Use access token to get CCTray xml?

Hi,

With the introduction of Access Tokens I was trying to see it could be used to get the CCTRAY xml as described in https://www.jetbrains.com/help/teamcity/rest-api.html#RESTAPI-CCTray

As far as I can see it is no possible to use a token to request the xml file?. We ware hoping to disable our Guest access and use a token based request to get the xml file in CCTRAY.

 

Any suggestions?

 

 

 

0
3 comments

Hi Gordon,

 

I've tried to connect to the rest endpoint via basic encoded username+password, basic encoded username+token and bearer token only. All 3 have worked just fine. Did you manage to fix the issue on your end or do you need further assistance with the problem?

0
Avatar
Permanently deleted user

Hi Dennis,

Still stuck ;)

Could I please have a code example for the 3 REST request you tested with? 

0

Hi Gordon,

 

while my tests were on Kotlin with retrofit, which would make it hard to show a sample, here's a curl request that worked:

 

curl --header "Authorization: Bearer <token>" --header "Origin: <server_url>" <server_url>/app/rest/cctray/projects.xml

0

Please sign in to leave a comment.