What sets User.Identity.IsAuthenticated in an ASP.NET MVC app?

Viewed 15221

I'm using the Facebook C# SDK, and I authenticate the user by their Facebook account. Once I've performed all the checks to "authenticate" them, I call FormsAuthentication.SetAuthCookie(email, false);

Does performing that call allow me to have access to User.Identity.IsAuthenticated within my actions? What about if I didn't make that call?

I have some actions that will return different views based on their authentication status, and want to make sure User.Identity.IsAuthenticated is reliable in an MVC 4 app.

1 Answers
Related