2

I knew how to implement form authentication in a traditional web site. But I am confused with these two interfaces. What are they used for and why do we need to implement them?

1 Answer 1

0

They are already implemented for you. HttpContext.User implements IPrincipal and HttpContext.User.Identity implements IIdentity.

As far as what they do, it depends on the version of .NET you are using, as things have changed a bit. This is the documentation for the latest .NET 4.5

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.