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...
|
10
shouts |
|
|||
No comments yet, be the first one to post comment.