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?
Please sign in to leave a comment.
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?
Hi Dennis,
Still stuck ;)
Could I please have a code example for the 3 REST request you tested with?
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