Fluent Bytes

"The only source of knowledge is experience" - Albert Einstein-

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>\AppData\Roaming\Microsoft\VisualStudio\11.0\ActivityLog.xml

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

CTO at Xpirit, Microsoft Regional Director, Visual studio ALM MVP, Speaker, Pluralsight Author and IT Architect Consultant

1 Comment

  1. How does one get a token from ADFS actively? What needs to be configured on the external RP?

Leave a Reply

Your email address will not be published.

*

© 2017 Fluent Bytes

Theme by Anders NorenUp ↑