Skip to content

Migrating to CslaClaimsPrincipal/ClaimsIdentity #1745

Discussion options

You must be logged in to vote

I am pretty sure that ClaimsIdentity is not serializable with BinaryFormatter or NDCS - which are the two serializers used by WCF.

In CSLA 5.2 (maybe 5.1?) the MobileFormatter was enhanced so it does know how to serialize a ClaimsIdentity.

In summary, if you are using WCF, you will need to configure WCF itself to do the impersonation, so WCF takes the user identity from the client and sets it on the server. And you will need to set the AuthenticationMode configuration of CSLA to "Windows" so CSLA doesn't try to do any impersonation.

(I am not 100% sure you can have WCF impersonate with ClaimsPrincipal, but if it is possible, this is what you need to do)

Or switch to using MobileFormatter

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ajohnstone-ks
Comment options

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