Equivalent to add sts reference for VS 2012

*Moved to: http://fluentbytes.com/equivalent-to-add-sts-reference-for-vs-2012/

So since Windows 8 now includes Identity Federation out of the box and I was working on a Visual Studio 2012 MVC 4 project to demo Azure ACS I was looking for the “Add sts reference” that I had in Visual Studio 2010, so I could easily configure the use of federation on my websites.

But it appears MS did not include this feature out of the box. In stead you need to install an extension that you can install using the Tools->extensions and updates menu, there you search for “Identity” in the online store and then you pick the “identity and access” package.

When you restart Visual Studio it is well possible that you will receive an error. this appears to be related to the fact that you don’t have the WIF SDK installed.

If you don’t install the SDK, then the package will fail to load and you will the following error details in the Logile: C:Users<username>AppDataRoamingMicrosoftVisualStudio11.0ActivityLog.xml

<entry>
&nbsp; <record>330</record>
&nbsp; <time>2012/10/02 20:15:11.738</time>
&nbsp; <type>Information</type>
&nbsp; <source>VisualStudio</source>
&nbsp; <description>Begin package load [IdentityAndAccessVSPackage]</description>
&nbsp; <guid>{97E6CB8F-C650-43EA-A6F3-2B4A51ECC8D5}</guid>
</entry>
<entry>
&nbsp; <record>331</record>
&nbsp; <time>2012/10/02 20:15:11.743</time>
&nbsp; <type>Error</type>
&nbsp; <source>VisualStudio</source>
&nbsp; <description>SetSite failed for package [IdentityAndAccessVSPackage]</description>
&nbsp; <guid>{97E6CB8F-C650-43EA-A6F3-2B4A51ECC8D5}</guid>
&nbsp; <hr>80004003 – E_POINTER</hr>
&nbsp; <errorinfo>Object reference not set to an instance of an object.</errorinfo>
</entry>
<entry>
&nbsp; <record>332</record>
&nbsp; <time>2012/10/02 20:15:11.743</time>
&nbsp; <type>Error</type>
&nbsp; <source>VisualStudio</source>
&nbsp; <description>End package load [IdentityAndAccessVSPackage]</description>
&nbsp; <guid>{97E6CB8F-C650-43EA-A6F3-2B4A51ECC8D5}</guid>
&nbsp; <hr>80004003 – E_POINTER</hr>
&nbsp; <errorinfo>Object reference not set to an instance of an object.</errorinfo>
</entry>

Just go to the download page here and install the WindowsIdentityFoundation-SDK-4.0.msi

Restart VS and now you will have a whole new menu option called “Identity and access…”

image

Now you can configure e.g. the usage of ACS again, by selecting the ACS option:

image

The rest speaks for itself…..

Hope this helps

Follow my new blog on http://fluentbytes.com