I've built an ADFS 2.0 server and used sample code to get a claims aware app using WIF 4.0 in VS 2010. TheAdd STS Reference command sorted everything out for me and it worked: I saw a list of claims on the page.
Now I'm trying to do the same thing in VS 2012. I've added the Identity and Access extension but it doesn't have the same functionality as Add STS Reference. One of the things Add STS Reference used to do was populate
<claimTypeRequired></claimTypeRequired>with the list of claims offered by the STS. It was then easy to customise which claims were requested and which were required. Re-running the utility would then populate FederationMetadata.xml for the site with the ClaimTypesRequested:
<fed:ClaimTypesRequested><auth:ClaimType Uri...</fed:ClaimTypesRequested>I can't find an easy way of doing this for a WIF 4.5 app in Visual Studio 2012. Is there one?
ADDITIONAL:
Even though claimTypeRequired is part of the schema (see here), I got Parser Error Message: Unrecognized element 'claimTypeRequired'. when I copied them from my Visual Studio 2010 app's web.config to the WIF 4.5 web.config.