To add STS reference in Visual Studio. You need to install WIF.
First you need to install WIF runtime. This will require a restart of the computer. Then you need to install WIF SDK. After that the ‘Add STS reference’ will appear in Visual Studio, when you right click on your website.