Last post Apr 14, 2009 07:43 PM by netuser2003
Apr 14, 2009 07:43 PM|netuser2003|LINK
Anyone know the best practice for passing the authorization ticket to the controller actions when performing a jQuery post?
Right now if I use the [AUTHORIZE] attribute on the controller actions to keep out unauthenticated users it doesnt work since the auth cookie does not get passed.
So even if I try to use something like HttpContext.User.Identity.IsAuthenticated inside my controller actions it wont work since again the cookie is not being passed as verified by Fiddler proxy.
The login is handled by the stock MVC authentication setup.
I am trying to protect an upload script
public class UploadController : Controller
// GET: /Upload/
public ActionResult Index()
// POST: /Upload/Script
public void Script()
Response.StatusCode = 401;
Any guidance would be appreciated.
Jquery mvc frameworks