I can't get this stuff to work, I have read a bunch of books and tutorials but they all go down different paths. I'm looking for the simplest way to get a threaded principal working.
So far in my login controller
GenericIdentity myawesomeidentity = new GenericIdentity("tk421");
GenericPrincipal myawesomeprincipal = new GenericPrincipal( myawesomeidentity, new string[] { "User" });
Thread.CurrentPrincipal = myawesomeprincipal;
return RedirectToAction("index", "home");
I don't have access to HttpContext.Current and after the redirect the thread has gone on a pub crawl somewhere.
What am I missing please?