MVC Owin Cookie Authentication - Override ReturnUrl Generation
I have an MVC application using Owin Cookie Authentication. I have SlidingExpiration enabled and working. However, when a user's login expires and they are sent back to the LoginPath, the ReturnUrl is giving me some problems: I only want the ReturnUrl to be included if it points to a GET action, not a POST action. I would like to include the PathAndQuery instead of just Path so that I can re-fill any items the user might have had filled in on a form. I tried creating my own AuthorizeAttribute (code below) and applying it to some of the methods in one of my controllers, but it seems like it is