Skip to content

Unable to implement a custom Identity from Csla.Security.CslaIdentity due to Serialization Error #1868

Discussion options

You must be logged in to vote

@ronnymgm it is now clear that this is a bug in the .NET Framework where the ClaimsPrincipal type doesn't properly deserialize itself based on the byte stream it creates.

I see the following options for you:

  1. Report this bug to Microsoft and wait for a potential fix in a future 4.8.x release
  2. Move your codebase to .NET Core or .NET 5, where this bug doesn't exist
  3. Contribute a custom serialization solution so MobileFormatter can work around this issue - presumably by manually pulling the properties/data from ClaimsPrincipal and ClaimsIdentity into a byte stream, and then putting the values into a new principal/identity pair

Replies: 5 comments 19 replies

Comment options

You must be logged in to vote
1 reply
@rockfordlhotka
Comment options

Comment options

You must be logged in to vote
6 replies
@rockfordlhotka
Comment options

@ronnymgm
Comment options

@rockfordlhotka
Comment options

@rockfordlhotka
Comment options

@ronnymgm
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
7 replies
@ronnymgm
Comment options

@ronnymgm
Comment options

@rockfordlhotka
Comment options

@rockfordlhotka
Comment options

@rockfordlhotka
Comment options

Comment options

You must be logged in to vote
5 replies
@ronnymgm
Comment options

@rockfordlhotka
Comment options

@rockfordlhotka
Comment options

@rockfordlhotka
Comment options

@ronnymgm
Comment options

Answer selected by ronnymgm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants