Daniel Williams
Daniel Williams

Reputation: 9304

Nancy ClaimsPrinciple vs IUserIdentity

I'm using Nancy and want to add forms authentication. My Nancy version is 1.4.3, but on nuget I can only find Nancy.Authentication.Forms 1.4.1

In 1.4.3 and 1.4.1 IUserMapper is defined differently:

1.4.1 IUserIdentity GetUserFromIdentifier 1.4.3 ClaimsPrincipal GetUserFromIdentifier

Do I need to downgrade to Nancy 1.4.1, or is there some simpler way to make this work? I'm happy to implenment IUserMapper, but need one definition!

Upvotes: 1

Views: 600

Answers (1)

Sifiso Shezi
Sifiso Shezi

Reputation: 486

Stick with ClaimsPrincipal which is the new standard and will make your upgrade to 2.0 seemless as well.

Upvotes: 2

Related Questions