We have an application that was originally built with .NET 4.0 and WIF 3.5 (1.0?). I'm in the process of converting it to use WIF 4.5 as we've upgraded the app to .NET 4.5. I've got all the code changes made and have been fighting with the configuration settings. My current dilemma is with the <claimTypeRequired> element. According to this documentation it should be a child of <identityConfiguration>, but when I modify my config to look like this
<system.identityModel>
<identityConfiguration>
<claimTypeRequired>
...
</claimTypeRequired>
I get the following error at run-time
Parser Error Message: Unrecognized element 'claimTypeRequired'.
If I just comment out the <claimTypeRequired> block I get past that error but then I'm presented with another problem. We had modified the maximumClockSkew in the existing application via the following configuration
<securityTokenHandlerConfiguration>
<maximumClockSkew value="1" />
</securityTokenHandlerConfiguration>
The configuration documentation referenced earlier doesn't even mention the maximumClockSkew. I figured I'd try leaving it in to see what happens. What happens is
Parser Error Message: Property 'maximumClockSkew' is not a ConfigurationElement.
But when I look at the SecurityTokenHandlerConfigurationElement class using JustDecompile I can see the property:
[ConfigurationProperty("maximumClockSkew", IsRequired=false, DefaultValue="00:05:00")]
[IdentityModelTimeSpanValidator(MinValueString="00:00:00")]
[TypeConverter(typeof(TimeSpanOrInfiniteConverter))]
public TimeSpan MaximumClockSkew...
So it seems like it's expecting it to be there.
It's almost like Microsoft doesn't actually want us to use this stuff.