Access Teamcity Page with username password in URL

Answered

Hi,

I have automation test reports held as teamcity build artifacts, which users access via URLS like

https://TCDOMAIN/viewLog.html?buildId=2837606&tab=buildResultsDiv&buildTypeId=ElateralIo_NightlyTests_Qa_EndToEndSmoke

i currently send this link out in an email to our product team, but this url requires authentication.  

Is it possible to change this URL to include a username/password, so when the user clicks on the link in their email, they are logged in and see page without any prompts?

I've tried:
https://USERNAME:PASSWORD@TCDOMAIN/viewLog.html?buildId=2837606&tab=buildResultsDiv&buildTypeId=ElateralIo_NightlyTests_Qa_EndToEndSmoke

which gives 404

I've also tried adding httpAuth in

https://USERNAME:PASSWORD@TCDOMAIN/httpAuth/viewLog.html?buildId=2837606&tab=buildResultsDiv&buildTypeId=ElateralIo_NightlyTests_Qa_EndToEndSmoke

but this gives 404

I currently have basic auth + ldap and Built in authentication modules enabled.

I also have internal.properties file set with "rest.use.authToken=true"

Any help greatly appreciated.

0
3 comments

Hi Simon,

Have you considered enabling guest user? This way your team can use the following link to access the page with the results:

https://TCDOMAIN/viewLog.html?buildId=2837606&tab=buildResultsDiv&buildTypeId=ElateralIo_NightlyTests_Qa_EndToEndSmoke&guest=1

2
Avatar
Permanently deleted user

No.  No i completely missed this.  Face in hands... I've only been using TC for 7 years! 

Many thanks!

0

Simon, 

I am glad it helped. Have a good day!

0

Please sign in to leave a comment.