Thanks for the link to the other post. I've got things working to bypass the login screen but I'm getting stuck on what I think is a very trivial thing. In this bit of code you are passing a hard coded username, "admin". I want to pass a variable instead, such as a querystring. I can't seem to figure out how to get that in there without generating an error.
MembershipUser user = UserManager.Default.MembershipProvider.GetUser(
var authCookie = FormsAuthentication.GetAuthCookie(user.UserName,
var ticket = FormsAuthentication.Decrypt(authCookie.Value);
var identity =
I tried things such as:
passeduser = Request.QueryString[
MembershipUser user = UserManager.Default.MembershipProvider.GetUser(passeduser,
but that generates System.NullReferenceException: Object reference not set to an instance of an
Any tips? Thanks!