I used the ASP.NET project wizard to create a on-premisis directory log-on application.
I followed the instructions at: http://www.cloudidentity.com/blog/2014/02/12/use-the-on-premises-organizational-authentication-option-adfs-with-asp-net-in-visual-studio-2013
But after I log in, ADFS sends me back to the local web application which throws this error:
Exception Details: System.IdentityModel.Tokens.SecurityTokenValidationException: WIF10201: No valid key mapping found for securityToken: 'System.IdentityModel.Tokens.X509SecurityToken' and issuer: 'http://xxxxxxxx/adfs/services/trust'.
This is being hosted on my dev machine, so its configured as localhost in ADFS just like the example shows. I double checked the certificate on the ADFS server and compared the thumbprint against the one the ASP.NET wizard put in the configuration file, and they match.
Has anyone ran into this and found a solution? The only solutions to error WIF10201 I can find involve correcting the thumbprint, but since I have verified the thumbprint as correct, I have no idea what else to check.