{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/Security/issues/324","labels_url":"https://api.github.com/repos/aspnet/Security/issues/324/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Security/issues/324/comments","events_url":"https://api.github.com/repos/aspnet/Security/issues/324/events","html_url":"https://github.com/aspnet/Security/issues/324","id":92485495,"number":324,"title":"CookieMiddleware serialization of the ClaimsPrincipal is lossy.","user":{"login":"brentschmaltz","id":3172421,"avatar_url":"https://avatars.githubusercontent.com/u/3172421?v=3","gravatar_id":"","url":"https://api.github.com/users/brentschmaltz","html_url":"https://github.com/brentschmaltz","followers_url":"https://api.github.com/users/brentschmaltz/followers","following_url":"https://api.github.com/users/brentschmaltz/following{/other_user}","gists_url":"https://api.github.com/users/brentschmaltz/gists{/gist_id}","starred_url":"https://api.github.com/users/brentschmaltz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brentschmaltz/subscriptions","organizations_url":"https://api.github.com/users/brentschmaltz/orgs","repos_url":"https://api.github.com/users/brentschmaltz/repos","events_url":"https://api.github.com/users/brentschmaltz/events{/privacy}","received_events_url":"https://api.github.com/users/brentschmaltz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-01T21:07:37Z","updated_at":"2015-07-01T21:18:34Z","closed_at":null,"body":"The AuthenticationTicket serialization is lossy. Not all of the ClaimsIdentities and Claims properties are serialized."},"comment":{"url":"https://api.github.com/repos/aspnet/Security/issues/comments/117827052","html_url":"https://github.com/aspnet/Security/issues/324#issuecomment-117827052","issue_url":"https://api.github.com/repos/aspnet/Security/issues/324","id":117827052,"user":{"login":"PinpointTownes","id":6998306,"avatar_url":"https://avatars.githubusercontent.com/u/6998306?v=3","gravatar_id":"","url":"https://api.github.com/users/PinpointTownes","html_url":"https://github.com/PinpointTownes","followers_url":"https://api.github.com/users/PinpointTownes/followers","following_url":"https://api.github.com/users/PinpointTownes/following{/other_user}","gists_url":"https://api.github.com/users/PinpointTownes/gists{/gist_id}","starred_url":"https://api.github.com/users/PinpointTownes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PinpointTownes/subscriptions","organizations_url":"https://api.github.com/users/PinpointTownes/orgs","repos_url":"https://api.github.com/users/PinpointTownes/repos","events_url":"https://api.github.com/users/PinpointTownes/events{/privacy}","received_events_url":"https://api.github.com/users/PinpointTownes/received_events","type":"User","site_admin":false},"created_at":"2015-07-01T21:18:34Z","updated_at":"2015-07-01T21:18:34Z","body":"> The AuthenticationTicket serialization is lossy. Not all of the ClaimsIdentities and Claims properties are serialized.\r\n\r\nThis issue is not specific to cookies and affects everything using `TicketSerializer`.\r\n+1 for `Claim.Properties`, I had to create my own serializer to fix that.\r\n\r\nAnyway, these issues will likely disappear when migrating to your new `WriteTo` gem: https://github.com/aspnet/Security/issues/158\r\nThat said, I guess this change will have to wait until .NET 4.6 is supported by dnx."}}