Assuming that I currently have a newly created project based on Visual Studio 2015 "WebApp" template with Individual Accounts authentication, I use Microsoft.AspNet.Authentication package and I can't always rely on cookies, because my web API should also target mobile apps:
How can I add authentication to my web API? I'm especially interested in token based authentication.
Authenticated Datain the browser you keep a Session variable that would beSession["IsAuthenticated"]and it would be true or false depending if the user/password passes logic / login or not.. this is extremely easy actually..tons of examples lookupPrincipalContext Classalso there are ways to do this validating against sql server etc..