This  provides a custom action attribute using ActionFilterAttribute (http://msdn.microsoft.com/en-us/library/system.web.http.filters.actionfilterattribute(v=vs.118).aspx), to allow HTTPS connection based on configuration.