My application and SQL server are both Windows 2012 SR2. SQL 2012 version 11.0.3128. To get SharePoint and it's prerequisites to install properly with little intervention I had to use SharePoint 2013 SP1. I don't think SP1 made any difference as the solution was for 2013.
One of the steps in configuring SharePoint 2013 SP1 for use with TFS is to Generate a New Key in the Secure Store Service Application.
The event log may have an entry generated by your domain account that looks like the below message.The next step was to start searching for solutions and came across one good page that didn't work for me but might for someone else. I tried everything in this article with no luck. I did come across the one that worked for me as well but executed it wrong the first time.
Basically there is a service that is not running in SharePoint called the Claims to Windows Token Service. You are to start it and restart 3 SharePoint services. Then reset IIS.
- SharePoint Administration
- SharePoint Timer Service
- SharePoint Tracing Service
- Start -> Run -> iisreset