10
shouts

How To: decrypt a GenericXmlSecurityToken with Geneva Beta 2

published 393 days, 5 hours, 41 minutes ago posted by mwoloskimwoloski 394 days, 1 hour, 15 minutes ago
Friday, July 03, 2009 8:52:24 AM GMT Thursday, July 02, 2009 1:18:52 PM GMT

This post had a lot of visits so I have updated it to work with Geneva Beta 2 1:publicstatic ClaimsIdentityCollection ToClaimsIdentityCollection(this GenericXmlSecurityToken originalToken, TrustVersion trustVersion, X509Certificate2 signature, X509Certificate2 encryption) 2: { 3: var tokenReader = new StringReader(originalToken.TokenXml.OuterXml); 4: var reader = XmlReader.Create(tokenReader); 5:  6: var privateKeyToken = new X509SecurityToken(encryption); 7: va...

category: Architecture | clicked: 83 | | source: blogs.southworks.net | show counter code
tags: Geneva, Geneva Framework, Identity