I have implementation of a custom STS. After being authenticated and redirected but before the page was loaded I would receive this error:
[CryptographicExc
I eventually found out that the claims, I had loaded from the database, had carriage return line feeds. Once I replaced those I had no more issues.