The blog and home page of Simon Soanes
Skip to content
[ Log On ]

Archive - Historical Articles

You are viewing records from 30/10/2017 18:46:53 to 30/10/2017 18:46:53. I'll be adding support for selecting a date range in future.

I can't believe it's still a thing; I've encountered this error repeatedly since the release of Windows Identity Foundation and have just encountered it again with Azure AD and MVC.  You just have to add this somewhere before using an AntiForgeryToken in MVC:-

AntiForgeryConfig.UniqueClaimTypeIdentifier = "";

To get past the error:-

A claim of type '' or '' was not present on the provided ClaimsIdentity.