Click here to Skip to main content
15,886,422 members
Articles / DevOps / TFS

Connecting Agents to TFS using Integrated Security on http from External Domain

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
6 Aug 2017MIT2 min read 4.9K   1  
How to connect Agents to TFS using Integrated Security on HTTP from external domain

If you have TFS on the domain but you are trying to connect agents to it from outside the domain and TFS is not running on https, then this post is for you.

Obviously, it would be great for everything to run on https, but sometimes you aren't able to because certs cost money, there is free certs these days but lots of them are dependent on you running your site on default ports for their setup, although you can setup TFS on default ports, it's generally not.

PAT Over HTTP

If you try using the PAT token auth, you will notice that the agent shouts at you saying PAT auth is only supported on https.

image

It feels like you have no options at this point but you do. Smile

Integrated Security from Outside the Domain

If you had to try integrated security from outside the domain, you would obviously be told that auth can't happen because the domain joined machine doesn't know who you are.

image

The solution is to use the Windows Credential Manager, go to the start menu and type windows credential and select Manage Windows Credentials.

image

In this window, you will click Add a Windows credential.

image

Enter the server name with port.

image

Click ok.

image

Once the credential is in, you can now re-try connecting using integrated security and it will work. Smile

image

Hopefully, this helps someone else as well.

Conclusion

It's a little bit hacky and I would say far from best practice but if you have no other options, it will work. Really do try and get a real cert. I used a self signed cert at first but then you have to go and tell each machine that it's a trusted cert which feels more hacky.

If you think about it, if all your code, work items and other artifacts are in TFS, that's the core of your company. Companies like Digi Cert sell standard SSL certs from around $140 a year, is your companies data being a little more secure not worth that?

License

This article, along with any associated source code and files, is licensed under The MIT License


Written By
Architect SSW
South Africa South Africa

Comments and Discussions

 
-- There are no messages in this forum --