Best way to return claims and security token from wcf?

Mar 1, 2012 at 6:24 AM

Strange as it may sound, I need to write a WCF service that returns a set of claims and a security token object. Initially thought this could be done by returning a ClaimsPrincipal, but that obviously doesn't work. I've read your posts related to this issue in other forums as well. Just wanted to know if there's a recommendation for doing this. Should I write a custom POCO with a claim list and token property?

 

Thanks,

Priya